Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 3

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.

1 Accepted Solution

Avatar

Correct answer by
Administrator
4 Replies

Avatar

Level 10

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?

Avatar

Level 3

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

Avatar

Level 10

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 Picke...

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.

Avatar

Correct answer by
Administrator