# HG changeset patch # User Nicolas Chauvat # Date 1257615577 -3600 # Node ID bc441a75f82c742555dcee1b6165fa697d94fd15 # Parent 561d7ade5719cd38ebde6dc2120c4ffb7f88dbda [web ui] very simple default configuration for ckeditor diff -r 561d7ade5719 -r bc441a75f82c web/data/cubicweb.fckcwconfig-full.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 ; + diff -r 561d7ade5719 -r bc441a75f82c web/data/cubicweb.fckcwconfig.js --- 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 ;