Reputation: 1
I am using liferay 6.0.ee sp2 version. I want to remove and extend Liferay CKEditor. As I have created hook and tried to modified this jsp
"/html/js/editor/ckeditor/ckconfig.jsp"
I have defined below properties in jsp.
CKEDITOR.config.autoParagraph = false;
CKEDITOR.config.ignoreEmptyParagraph = false;
CKEDITOR.config.removePlugins = 'Underline';
Changes are not reflected on CKEditor. What could be the issue. Any pointers.
Upvotes: 1
Views: 1195
Reputation: 4730
There is not any issue with your Hook, it is doing its job properly by overriding the CKEditor config JSP.
I have noticed that some of the configuration changes are functional as desired, e.g.
CKEDITOR.config.removePlugins = 'stylescombo,font';
CKEDITOR.config.height = 500;
However, the following one is not working:
CKEDITOR.config.removePlugins = 'Underline';
There seems to be some naming convention issue for the plugins name. Like we used stylescombo
for Styles
and font
for FontSize
, that removed plugins from the toolbar.
Now, there are two possibilities left for removing Underline
plugin:
1. Either remove it from the toolbar that you are using.
2. Or create separate toolbar excluding the plugins you desire to remove.
Upvotes: 1