Skip to main content
Riju-Mahna
Level 2
Oct 16, 2015 2:26 AM UTC
Solved

Create rich Text Editor using CQ.Util.Build

I need to create a RTE using the CQ.Util.Build (as an extension to what has been done in the "/foundation/social/blog/entryForm" JSP)

The final editor needs to have somewhat these features :

[img]rte-plugin-editor.JPG[/img]

 

This is the complete code I sued for the richtext editor but I still don't see any new features in the editor:

"rtePlugins":{ "spellcheck":{"features":"*"}, "image":{"features":"* "}, "edit":{"features":"* "}, "justify":{"features":"* "}, "misctools":{"features":"* "}, "table":{"features":"* "}, "undo":{"features":"* "} }
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Ojjis
OjjisAccepted solution
Level 7
Oct 16, 2015 2:26 AM UTC

Hi,
have you tried to include the specific features that you want instead, like this one that I'm using.
This way you will be able to have more control of the included plugins as well.
 

"xtype":"richtext", "id":"<%= id %>_text", "name":"text", "width":"99.5%", "enableSourceEdit":true, "rtePlugins": { "misctools": { "features":["specialchars","sourceedit"] }, "image": { "features":["image"] }, "findreplace": { "features":["find","replace"] },     "paraformat":{        //Enter the required paraformats here     } }

3 replies

Ojjis
Level 7
Oct 16, 2015 2:26 AM UTC

Is there anything strange in the logs and is it possible to supply some more code to see if there error is somewhere outside ?
Can you explain more about your implementation ?

/J

Translate
Riju-Mahna
Level 2
Oct 16, 2015 2:26 AM UTC

Hi Ojjis,

Thanks for having a look. But yes, I did try all the different features. [Please see the updated Question.] It is still not showing the editor options

Translate
Ojjis
OjjisAccepted solution
Level 7
Oct 16, 2015 2:26 AM UTC

Hi,
have you tried to include the specific features that you want instead, like this one that I'm using.
This way you will be able to have more control of the included plugins as well.
 

"xtype":"richtext", "id":"<%= id %>_text", "name":"text", "width":"99.5%", "enableSourceEdit":true, "rtePlugins": { "misctools": { "features":["specialchars","sourceedit"] }, "image": { "features":["image"] }, "findreplace": { "features":["find","replace"] },     "paraformat":{        //Enter the required paraformats here     } }
Translate