Regarding RTE Styles

Avatar

Avatar

SreekanthReddy

Avatar

SreekanthReddy

SreekanthReddy

05-06-2020

Hi,

  When i am open AEM page unwanted style getting added to Rich text component, Because of this style pages keep on scrolling to left.rte.PNG

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

khamat_bn

Avatar

khamat_bn

khamat_bn

05-06-2020

Hi @SreekanthReddy ,

When you adding at that time only style is adding means you may imported clientlibs in rich text component either in html or via class name in node.

Please check where you are importing the css class and remove the same or add the correct one.

Let us know.

 

Happy Coding 

~BK

 

Answers (2)

Answers (2)

Avatar

Avatar

ArpitVarshney

MVP

Avatar

ArpitVarshney

MVP

ArpitVarshney
MVP

05-06-2020

Hi @SreekanthReddy ,

 

It might be possible the content is copied from somewhere and while pasting it took the formatting of the source text.

Can you reauthor your text in rte after removing the source formatting?[You can use various method to remove formatting like an online tool https://www.textcleanr.com/# or copy the text in word and remove formatting before pasting it in richtext]

 

Regards,

Arpit

Avatar

Avatar

Veena_Vikram

MVP

Avatar

Veena_Vikram

MVP

Veena_Vikram
MVP

05-06-2020

@SreekanthReddy  How did you author your RTE ? The content which I can see via inspect element doesn't look like authored via RTE field. It can be possible it might be source edited ? Could you please confirm how this is authored ? If you think the authoring is done properly and still it is getting added, as an additional step of debugging , can you author a page in we-retail using the same RTE component and check if the additional styles are getting added ?