Customizing the HTML Editor
The following relates to the Sitecore 5.1 Beta.
To add a custom button for the HTML Editor do the following:
1. Create an item of template "Html Editor Custom Button" under "/sitecore/system/Settings/Html Editor Custom Buttons".
2. Fill in the 4 fields: Name, Icon, Tooltip and Click. The click field contains the javascript function to be called. Remember to include parentheses.
3. Create an item of template "Html Editor Button" in the HTML profile(s) where the button should appear. The Click field corresponds to the Name of the custom button.
4. In the web.config add a script tag to the clientscripts/htmleditor section. This will include the script file in the HTML editor.
5. Test that it works.
To add a custom button for the HTML Editor do the following:
1. Create an item of template "Html Editor Custom Button" under "/sitecore/system/Settings/Html Editor Custom Buttons".
2. Fill in the 4 fields: Name, Icon, Tooltip and Click. The click field contains the javascript function to be called. Remember to include parentheses.
3. Create an item of template "Html Editor Button" in the HTML profile(s) where the button should appear. The Click field corresponds to the Name of the custom button.
4. In the web.config add a script tag to the clientscripts/htmleditor section. This will include the script file in the HTML editor.
5. Test that it works.
0 Comments:
Post a Comment
<< Home