Modifying fckeditor for use in PHP-eSeller

Fckeditor is used in PHP-eSeller as an HTML text editor and provides a powerful easy to use web editor. It is fully described on the web site http://www.fckeditor.net/

The main area of customisation that you may want to implement is defining the toolbar that appears above the text box which is used to enter product descriptions. We have trimmed down the toolbar buttons to make it more manageable and to remove tools that are not required all that often. However, you may want to add back in some buttons which is very easy to do.

Open up the file /fckeditor/fckeditor.js with a suitable text editor.

The toolbar that we use is called FCKConfig.ToolbarSets[“pg_toolbar”].

The default toolbar is FCKConfig.ToolbarSets[“Default”].

If you want to add a button from the default toolbar, just copy it and place it into FCKConfig.ToolbarSets[“pg_toolbar”].

Or if you want all the buttons, rename FCKConfig.ToolbarSets[“Default”] to FCKConfig.ToolbarSets[“pg_toolbar”] and remove the old FCKConfig.ToolbarSets[“pg_toolbar”].

Note that the very last button on the toolbar is used to maximise the editor window which can help if you are doing more detailed work with the html.

Leave a Reply