Liferay 7 - Customizing default values of ckeditor table options

Shubhankit Roy, modified 6 Years ago. New Member Posts: 8 Join Date: 4/27/15 Recent Posts

I have a situation where I need to change some of the default values that are shown in the dialog box that opens on clicking the 'table' icon from the icons available in the ckEditor. Is there a way to achieve this?

In 6.2 this was achieved via hooking ckeditor related JSPs, however that particular piece of code has been moved to 'dialog_definition.js' in liferay 7. So basically I am trying to override a liferay JS file.

Thanks in advance.

thumbnail
Alfonso Crisci, modified 6 Years ago. Regular Member Posts: 136 Join Date: 4/2/14 Recent Posts
Shubhankit Roy:

I have a situation where I need to change some of the default values that are shown in the dialog box that opens on clicking the 'table' icon from the icons available in the ckEditor. Is there a way to achieve this?

In 6.2 this was achieved via hooking ckeditor related JSPs, however that particular piece of code has been moved to 'dialog_definition.js' in liferay 7. So basically I am trying to override a liferay JS file.

Thanks in advance.

 

Hi, did you read https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/adding-new-behavior-to-an-editor already ? Based on the topic and steps, it seems pertinent to your requirement.

 

 

Shubhankit Roy, modified 6 Years ago. New Member Posts: 8 Join Date: 4/27/15 Recent Posts

Hi Alfonso

Thanks for pointing me to this! Somehow I missed checking this one earlier.

This was helpful indeed.

Thanks & Best

Shubhankit Roy