AEM RTE Styles plugin. Select only one style. | Community
Skip to main content
Level 2
April 26, 2021
Solved

AEM RTE Styles plugin. Select only one style.

  • April 26, 2021
  • 2 replies
  • 1796 views

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?

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

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!

2 replies

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
April 26, 2021

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!

Level 2
April 11, 2022

Hi,

I was wondering if any custom plugin is developed to address this issue, even we are facing the same problem with styles plugin