Customize the toolbars of FCKEditor

A place for users and developers of the Xataface to discuss and receive support.

Customize the toolbars of FCKEditor

Postby kevinwen » 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:

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?
Attachments
FCKEditor.png
FCKEditor.png (29.03 KiB) Viewed 3527 times
kevinwen
 
Posts: 109
Joined: Mon Dec 28, 2009 3:44 pm

Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 19 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved