Page 1 of 1

Customize the toolbars of FCKEditor

PostPosted: Tue Mar 30, 2010 3:48 pm
by kevinwen
Those buttons appearing on top of the editor is configured by this file: xataface\lib\FCKeditor\fckconfig.js using the following javascript code:

Code: Select all
FCKConfig.ToolbarSets["Default"] = [
   ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
   ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
   ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
   ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
   '/',
   ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
   ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
   ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
   ['Link','Unlink','Anchor'],
   ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
   '/',
   ['Style','FontFormat','FontName','FontSize'],
   ['TextColor','BGColor'],
   ['FitWindow','ShowBlocks','-','About']      // No comma for the last row.
] ;



Is there any way that I can remove some of the buttons in the FCK Editor by creating another fckconfig.js located in the app somewhere?