Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

nandini559
Level 2
Level 2

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

Custom link option.PNG

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

Custom link pop up.PNG

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

1 Accepted Solution
GaneshM
Correct answer by
Level 3
Level 3

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!

View solution in original post

0 Replies
GaneshM
Correct answer by
Level 3
Level 3

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!

View solution in original post