Configure the Structured Content Editor

From OpenCms Wiki
Revision as of 23:44, 27 June 2007 by Pam (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The default install of OpenCMS does not include the "Link" icon when editing html inside of structured content. You can add in the "Link" icon by editing the file /system/workplace/editors/fckeditor/configwidget.js.

This only affects the toolbar that shows up when you click the little arrow-thingy by html-type content - that is, areas of the structured content where you can enter HTML into a text area, rather than a single line.

Look for the block of displayed below:

StringBuffer toolbar = new StringBuffer(1024);
toolbar.append("[");
toolbar.append("'Undo','Redo','-','SelectAll','RemoveFormat'");
toolbar.append(",'-','Cut','Copy','Paste','PasteText','PasteWord'");
toolbar.append(",'-','Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'");
toolbar.append("],[");
toolbar.append("'JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'");
toolbar.append(",'-','OrderedList','UnorderedList'");
toolbar.append(",'-','Outdent','Indent'");
toolbar.append("]");

Here you can adjust the toolbar to anything you'd like. To add the link icon, you can insert ['Link'] in the appropriate place below.

StringBuffer toolbar = new StringBuffer(1024);
toolbar.append("[");
toolbar.append("'Undo','Redo','-','SelectAll','RemoveFormat'");
toolbar.append(",'-','Cut','Copy','Paste','PasteText','PasteWord'");
toolbar.append(",'-','Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'");
toolbar.append("],['Link'],[");
toolbar.append("'JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'");
toolbar.append(",'-','OrderedList','UnorderedList'");
toolbar.append(",'-','Outdent','Indent'");
toolbar.append("]");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox