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

AEM 6.4 RTE Touch UI Adding Classes

toodooleedoo
Level 1
Level 1

When you add a use the RTE Editor in Touch UI and Select a bullet or numbered list it appropriately adds <ol> or <ul> with <li>'s.  I however need to add a class to these elements like the sample below.  I also want to do this for everything like <h1>'s and other options.

Whats the best way to achieve this ?  Appreciate any assistance in advance!

1703286_pastedImage_3.png

1703287_pastedImage_0.png

2 Replies
smacdonald2008
Level 10
Level 10

To perform your use case - you need to develop a custom RTE plug-in. This is done using JavaScript. To see an example - see:

http://experience-aem.blogspot.com/2017/06/aem-63-touch-ui-rte-rich-text-editor-color-pick er-plugin-inplace-dialog-edit.html