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