[opencms-dev] Enriching the toolbar FCKeditor in opencms 7.5.1

Deiverson Silveira deiverson at solutioncms.com
Thu Oct 15 23:29:08 CEST 2009


Hi List,



 I'm sharing the necessary changes in the file
/system/workplace/editors/fckeditor/configwidget.js for the FCKEditor 2.6.5
(What's in the OpenCms version 7.5.1) working with the toolbar richer
features:


Change the lines:

FCKConfig.AutoDetectLanguage = false;

*to*

FCKConfig.AutoDetectLanguage = true;



FCKConfig.ProcessNumericEntities = false;

*to*

FCKConfig.ProcessNumericEntities = true;



FCKConfig.IncludeLatinEntities = false;

*to*

FCKConfig.IncludeLatinEntities = true;



FCKConfig.ToolbarStartExpanded    = false;

*to*

FCKConfig.ToolbarStartExpanded    = true;



FCKConfig.ImageUpload = false;

*to*

FCKConfig.ImageUpload = true;



FCKConfig.LinkUpload = false;

*to*

FCKConfig.LinkUpload = true;



And now the "gotcha", modify the line:

* *

FCKConfig.ToolbarSets["OpenCmsWidget"] = [

        <%= option.getButtonBar(CmsFCKEditorWidget.BUTTON_TRANSLATION_MAP,
",") %>

];



*to:*



FCKConfig.ToolbarSets["OpenCmsWidget"] = [

['Source'],

['Style','FontFormat','FontName','FontSize','TextColor','BGColor','FitWindow','ShowBlocks','Undo','Redo','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],

['Find','Replace','-','SelectAll','RemoveFormat','Cut','Copy','Paste','PasteText','PasteWord'],

['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak','DocProps','-'],

['Save','NewPage','Preview','Link','Unlink','Anchor','Templates','-'],

['Print','SpellCheck','Bold','Italic','Underline','-','Subscript','Superscript'],

['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],

['Form','Checkbox','Radio','TextField','Textarea','Select','Button','-']];



Any suggestions for improvement are welcome,


Kind Regards,



Deiverson Silveira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20091015/64d59a5a/attachment.htm>


More information about the opencms-dev mailing list