Regarding RTE Styles | Community
Skip to main content
June 5, 2020
Solved

Regarding RTE Styles

  • June 5, 2020
  • 3 replies
  • 4996 views

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.

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 khamat_bn

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

 

3 replies

khamat_bn
khamat_bnAccepted solution
Level 4
June 5, 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

 

June 5, 2020

.

ArpitVarshney
Community Advisor
Community Advisor
June 5, 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

VeenaVikraman
Community Advisor
Community Advisor
June 5, 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 ?