[web ui] very simple default configuration for ckeditor stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Sat, 07 Nov 2009 18:39:37 +0100
branchstable
changeset 3802 bc441a75f82c
parent 3801 561d7ade5719
child 3803 414bb8439002
[web ui] very simple default configuration for ckeditor
web/data/cubicweb.fckcwconfig-full.js
web/data/cubicweb.fckcwconfig.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/data/cubicweb.fckcwconfig-full.js	Sat Nov 07 18:39:37 2009 +0100
@@ -0,0 +1,34 @@
+// cf /usr/share/fckeditor/fckconfig.js
+
+FCKConfig.AutoDetectLanguage	= false ;
+
+FCKConfig.ToolbarSets["Default"] = [
+    // removed : 'Save','NewPage','DocProps','-','Templates','-','Preview'
+	['Source'],
+    // removed: 'Print','-','SpellCheck'
+	['Cut','Copy','Paste','PasteText','PasteWord'],
+	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
+    //['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
+	'/',
+    // ,'StrikeThrough','-','Subscript','Superscript'
+	['Bold','Italic','Underline'],
+    // ,'-','Outdent','Indent','Blockquote'
+	['OrderedList','UnorderedList'],
+    // ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
+	['Link','Unlink','Anchor'],
+    // removed : 'Image','Flash','Smiley','PageBreak'
+	['Table','Rule','SpecialChar']
+    // , '/',
+    // ['Style','FontFormat','FontName','FontSize'],
+    // ['TextColor','BGColor'],
+    //,'ShowBlocks'
+    // ['FitWindow','-','About']		// No comma for the last row.
+] ;
+
+// 'Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','Form',
+FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','BulletedList','NumberedList','Table'] ;
+
+FCKConfig.LinkUpload = false ;
+FCKConfig.ImageUpload = false ;
+FCKConfig.FlashUpload = false ;
+
--- a/web/data/cubicweb.fckcwconfig.js	Sat Nov 07 18:38:52 2009 +0100
+++ b/web/data/cubicweb.fckcwconfig.js	Sat Nov 07 18:39:37 2009 +0100
@@ -1,34 +1,15 @@
-// cf /usr/share/fckeditor/fckconfig.js
-
-FCKConfig.AutoDetectLanguage	= false ;
-
-FCKConfig.ToolbarSets["Default"] = [
-    // removed : 'Save','NewPage','DocProps','-','Templates','-','Preview'
-	['Source'],
-    // removed: 'Print','-','SpellCheck'
-	['Cut','Copy','Paste','PasteText','PasteWord'],
-	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
-    //['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
-	'/',
-    // ,'StrikeThrough','-','Subscript','Superscript'
-	['Bold','Italic','Underline'],
-    // ,'-','Outdent','Indent','Blockquote'
-	['OrderedList','UnorderedList'],
-	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
-	['Link','Unlink','Anchor'],
-    // removed : 'Image','Flash','Smiley','PageBreak'
-	['Table','Rule','SpecialChar'],
-	'/',
-	['Style','FontFormat','FontName','FontSize'],
-	['TextColor','BGColor'],
-    //,'ShowBlocks'
-	['FitWindow','-','About']		// No comma for the last row.
-] ;
-
-// 'Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','Form',
-FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','BulletedList','NumberedList','Table'] ;
-
-FCKConfig.LinkUpload = false ;
-FCKConfig.ImageUpload = false ;
-FCKConfig.FlashUpload = false ;
-
+
+FCKConfig.AutoDetectLanguage    = false ;
+
+FCKConfig.ToolbarSets["Default"] = [
+['Bold','Italic','Underline'],
+['OrderedList','UnorderedList'],
+['Link'],
+['Table']
+] ;
+// 'Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','Form',
+FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','BulletedList','NumberedList','Table'] ;
+
+FCKConfig.LinkUpload = false ;
+FCKConfig.ImageUpload = false ;
+FCKConfig.FlashUpload = false ;