Enriching the toolbar FCKeditor in opencms 7.5.1

View: New views
1 Messages — Rating Filter:   Alert me  

Enriching the toolbar FCKeditor in opencms 7.5.1

by Deiverson Silveira-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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



_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev