Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7DR#3
-
Component/s: ICE-Components
-
Labels:None
-
Environment:n/a
-
Support Case References:
Description
Need to provide the api to use customizable toolbar for the inputRichText. Available toolbars are documented here:
http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Toolbar?highlight=%28toolbar%29
- New attribute would be called 'toolbar' and would simply be a string or params passed to the FCKEditor.
http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Toolbar?highlight=%28toolbar%29
- New attribute would be called 'toolbar' and would simply be a string or params passed to the FCKEditor.
Issue Links
- depends on
-
ICE-2721 The inputRichText component should allow to switch between two default toolbar sets which comes with the FCKeditor
- Closed
In order to define the custom toolbar, the following snippet needs to be put inside the config.js.
FCKConfig.ToolbarSets['custom'] = [
['item1'],
['item2'],
['item3', 'item4]
] ;
To server the FCKeditor resources we use a zip file (fckeditor.zip). So its not straight to take above snippet as string parameter and manipulate the config.js inside the zip and serve it.
I thought after loading the FCKeditor API, the "FCKconfig" will be available into the javascript context as a public variable, but when I tried it, I didn't find it.