extending table inside rich text editor plugin | Community
Skip to main content
New Participant
October 16, 2015
Solved

extending table inside rich text editor plugin

  • October 16, 2015
  • 22 replies
  • 6376 views

Hi,

 

I am currently using the rich text editor table plugin. I would like to extend it to include two more extra properties I was wondering whether this is possible and if there is any examples.

 

Chris 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ojjis

Hmm,
I would overlay the file in "/apps" with the same name/structure so you wont have to worry about that later one since it's quite a lot of scripts and different functions involved. 

Glad it worked out
/Johan

22 replies

Ojjis
New Participant
October 16, 2015

Hi Chris.
Have you read this one: http://dev.day.com/docs/en/cq/current/developing/widgets.html ?
There you will find a lot of information of how to extend widgets.
Also there is a lot of info about how to configure the RTE here : http://dev.day.com/docs/en/cq/current/administering/configuring_rich_text_editor.html
and that will also show you how to edit things for the table plugin.

Good luck
/Johan
 

chrisu168Author
New Participant
October 16, 2015

Hi,

 

I have read them. I have managed to extend tablepropertiesdialog but the 2 property fields I created do not get persisted.

 

Chris 

Sham_HC
New Participant
October 16, 2015

I do not have the sample.  What are the properties you are trying to add? What exact change you have done so far?  In the firebox are you seeing the addition properties are passed on POST request?

chrisu168Author
New Participant
October 16, 2015

Hi,

Just to give you some background we are using cq5.5.

I have copied tableplugin.js and tablepropertiesdialog.js and made a local copy inside the apps directory for my app

the names are customtableplugin and customtablepropertiesdialog.

I have changed the customtableplugin code to refer to the customtablepropertiesdialog file. Inside the customtablepropertiesdialog file I have added the 2 new properties table name and category name. When I click on the table inside the rich text editor I can see the dialog come up with my 2 new fields along with the existing fields like number of rows and number of columns. However when I submit the dialog I can see inside firebug that the post does not contain my 2 new fields.

 

Chris 

Ojjis
New Participant
October 16, 2015

Is it possible that you could supply some sample code to facilitate the trouble shooting ? :)

chrisu168Author
New Participant
October 16, 2015

Hi,

 

I have attached files as requested. 

 

Chris 

Ojjis
New Participant
October 16, 2015

Hmm i can't see them :S

chrisu168Author
New Participant
October 16, 2015

I will upload again

chrisu168Author
New Participant
October 16, 2015

chrisu168 wrote...

I will upload again

 

chrisu168Author
New Participant
October 16, 2015

I am uploading the files and it even says 2 files chosen but I do not understand where the files have gone