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
-
The following new attribute added on the inputRichText component, to define the custom configuration path.
-customConfigPath
The configuration of the FCKEditor can be changed using the js file defined by the above path, relative to the web root.
In order to get the custom toolbar, there are two steps are involved.
1- Define a toolbarset into the JS file, and place it into the web app.(e.g.)
web_application_root/js/my_config.js
FCKConfig.ToolbarSets["MyToolbar"] = [['Bold','Italic', 'Underline'], ['Save']] ;
2- Define the customConfigPath and the toolbar name on the inputRichText component (e.g.)
<ice:inputRichText customConfigPath="js/my_config.js" toolbar="MyToolbar" />