Expand my Community achievements bar.

SOLVED

Wrap RTE content within code tag when source edit is option is used and html code is pasted.

Avatar

Level 2

We have a requirement to wrap the html content of the rte with in <code> </code> tag when the rte source edit plugin is clicked and a code is pasted. Any pointers on the customization? I did look in to a post https://experience-aem.blogspot.com/2022/08/aem-6-5-12-extend-rte-link-plugin-command-add-icon-info-... but that extends /libs/clientlibs/granite/coralui2/optional/rte/js/core/commands/link.js for the customization. for the entire rte html to be wrapped only when the code is copied using source editor, what are the options to customize on AEMaacs ? Any pointers on this would be of great help.

 

Thanks,

S

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi, 

It sounds to me that creating a new plugin for that specific use case would be easier, please check these:

https://exadel.com/news/creating-a-custom-aem-rte-plugin/

https://www.bounteous.com/insights/2022/01/06/custom-rich-text-editor-plugins-adobe-experience-manag...

 

Hope this helps



Esteban Bustamante

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi, 

It sounds to me that creating a new plugin for that specific use case would be easier, please check these:

https://exadel.com/news/creating-a-custom-aem-rte-plugin/

https://www.bounteous.com/insights/2022/01/06/custom-rich-text-editor-plugins-adobe-experience-manag...

 

Hope this helps



Esteban Bustamante