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

AEM RTE Styles plugin. Select only one style.

aemAmateur
Level 2
Level 2

With the default implementation of the styles plugin in RTE, I am able to add multiple classes to the selected text. The recent selection gets nested to the previously selected option. Is there any configuration that can make styles plugin to not chose more than one style for any selected text?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution
Asutosh_Jena_
Correct answer by
Community Advisor
Community Advisor

Hi @aemAmateur 

 

There is no such configuration exists OOTB which will allow to prevent selection of multiple styles from style dropdown. If a style is sleected, the corresponding style will be having a checkmark in the authoring view so you should be able to identify if anything is selected.

 

If you really want to block it, then we might need to add a custom plugin which will be loaded while authoring and will prevent the functionality.

 

Thanks!

View solution in original post

1 Reply
Asutosh_Jena_
Correct answer by
Community Advisor
Community Advisor

Hi @aemAmateur 

 

There is no such configuration exists OOTB which will allow to prevent selection of multiple styles from style dropdown. If a style is sleected, the corresponding style will be having a checkmark in the authoring view so you should be able to identify if anything is selected.

 

If you really want to block it, then we might need to add a custom plugin which will be loaded while authoring and will prevent the functionality.

 

Thanks!

View solution in original post