Wrap RTE content within code tag when source edit is option is used and html code is pasted. | Community
Skip to main content
October 28, 2024
Solved

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

  • October 28, 2024
  • 1 reply
  • 613 views

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-doc-type.html 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

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 EstebanBustamante

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-manager/

 

Hope this helps

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
October 28, 2024

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-manager/

 

Hope this helps

Esteban Bustamante