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.
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
I am using rte plugin where would like to add the custom class to the tags defined by template author
Views
Replies
Total Likes
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:
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.
Views
Replies
Total Likes
Views
Replies
Total Likes