Have a class authored by template author over tags like <h1 class="cm_h1">test</h1> | Community
Skip to main content
New Participant
January 14, 2019
Solved

Have a class authored by template author over tags like <h1 class="cm_h1">test</h1>

  • January 14, 2019
  • 4 replies
  • 1798 views

I would like to have a class on h1 tag which is authored by the template author like <h1 class = "cm_h1">test</h1> and this option has to be limited to only the header tags. The predefined class should not appear for other options like paragraph.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

smacdonald2008
New Participant
January 14, 2019

Creating a custom RTE plug-in is a dev task that involves writing JQuery code. We do not have a lot of examples of how to write a custom RTE plug-in. One example that we do have is here:

Experiencing Adobe Experience Manager - Day CQ: AEM 63 - Touch UI RTE (Rich Text Editor) Color Picker Plugin for InPlace…

As you can see - there is quite a bit of JQuery code. We do not have an example for the use case you are describing.

New Participant
January 14, 2019

I am using rte plugin where would like to add the custom class to the tags defined by template author

smacdonald2008
New Participant
January 14, 2019

I am not clear what exactly what you are trying to do. Is this part of a custom component use case? Are you using HTL?