CubeCartForums.org Documentation Area

CubeCartForums.org for CubeCart third-party documentation, modifications, skins and services
Permanent Link   Print This Page
Introduction CubeCart v3 CubeCart v4 Appendix Search

CubeCart Version 3 Documentation - Customising the FCK Editor

Google Translate:

Customising the FCK Editor

How to resize the FCK Editor Window

To resize the Rich Text Editor window in Admin, making the editor space that bit taller, follow the steps below.

1. Find and open using a text editor:

/admin/includes/rte/fckeditor.php

2. Look for the following text on about line 39:
$this->Height = '200';
3. Change the value from '200' to '500', or your preferred size.

4. SAVE and UPLOAD the file to your webserver.

Simplifying the Toolbar.


Default toolbar

To reduce the number of toolbar icons, thus removing the unused clutter, follow the steps below.

1. Find and open using a text editor:

/admin/includes/rte/fckeditor.php

2. Look for the following text on about line 40:
$this->ToolbarSet = 'Default';
3. Change the value from 'Default' to 'Basic', as shown in the screenshot below.

Basic toolbar

4. SAVE and UPLOAD the file to your webserver.

Adding or Removing Toolbar Buttons

To add to remove toolbar buttons, particularly useful if you have change the toolbar set to 'Basic', just follow steps.

1. Find and open using a text editor:

/admin/includes/rte/fckconfig.js

2. Look for the following text on lines 61 and 77. These indicate the start of the tool button content:
FCKConfig.ToolbarSets["Default"] = [
and
FCKConfig.ToolbarSets["Basic"] = [

This shows the complete toolbar set for the 'Basic' toolbar:
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;

Basic toolbar

3. To add additional buttons, the easiest way is to copy buttons directly from the 'Default' button set to the 'Basic' set. For example, this entry...
'Source'
... is the source button, allowing the user to view the source code the editor creates. Each entry is seperated by a coma, when added to the 'Basic' toolbar it looks like this:
FCKConfig.ToolbarSets["Basic"] = [
['Source','Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;

Basic toolbar with Source button added

4. SAVE and UPLOAD the file to your webserver.





Comments, Feedback, Suggestions and Documentation Submissions please post in the Documentation Chat Forum.