How to customize RTE plugin option in the Content Fragment RTE? | Community
Skip to main content
Level 2
November 22, 2018
Solved

How to customize RTE plugin option in the Content Fragment RTE?

  • November 22, 2018
  • 1 reply
  • 2009 views

We are planning to customize hyper link option shown below in the Content Fragment RTE.

After clicking on the above link option , it should display a custom pop up with few fields in it as shown below.

Kindly let me know the possible ways to achieve this customization.

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 GaneshM

you need create custom link plugin by extending /libs/clientlibs/granite/coralui2/optional/rte/js/core/commands/Link.js plug-in

and to create options pop-up you need to find the correct template and implemnt same for your new custom plugn-in

/libs/clientlibs/granite/coralui2/optional/rte/js/components/cui-rte.templates.js

ex:

locate this code  this["CUI"]["rte"]["Templates"]["dlg-link"] in template js and you can see the options.

I believe you are using AEM 6.3 or above, for lower versions the libs path is different.

Thanks!

1 reply

GaneshM
GaneshMAccepted solution
Level 3
December 5, 2018

you need create custom link plugin by extending /libs/clientlibs/granite/coralui2/optional/rte/js/core/commands/Link.js plug-in

and to create options pop-up you need to find the correct template and implemnt same for your new custom plugn-in

/libs/clientlibs/granite/coralui2/optional/rte/js/components/cui-rte.templates.js

ex:

locate this code  this["CUI"]["rte"]["Templates"]["dlg-link"] in template js and you can see the options.

I believe you are using AEM 6.3 or above, for lower versions the libs path is different.

Thanks!