Expand my Community achievements bar.

SOLVED

Custom style plugin in rich text editor

Avatar

Level 1

Hi,

 

I trying to build a style plugin in rte that can change the class in the same original tag where the text is instead of adding a new span tag

OOTB style plugin adds a new span tag to apply the style but I need this in the same original tag.

 

like this

<h2 class="new class">some text</h2>

 instead of

<h2 class="some class"></h2>

<span class="new class">some text</span>

 

I referred below for building custom style plugin but its not working for me I am using AEM 6.5

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/second-styles-plugin-for-r...

 

Is there any custom style plugin? Any reference would be helpful.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor