Create rich Text Editor using CQ.Util.Build | Community
Skip to main content
Riju-Mahna
October 16, 2015
Solved

Create rich Text Editor using CQ.Util.Build

  • October 16, 2015
  • 3 replies
  • 1968 views

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.
Best answer by Ojjis

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
OjjisAccepted solution
October 16, 2015

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     } }
Riju-Mahna
October 16, 2015

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

Ojjis
October 16, 2015

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