Customize the toolbars of FCKEditor
Posted: Tue Mar 30, 2010 3:48 pm
Those buttons appearing on top of the editor is configured by this file: xataface\lib\FCKeditor\fckconfig.js using the following javascript code:
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?
- 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?