AEM Inline Editor adds "span" tag to text with inline styles when removing a line break | Community
Skip to main content
June 8, 2022

AEM Inline Editor adds "span" tag to text with inline styles when removing a line break

  • June 8, 2022
  • 4 replies
  • 1640 views

When editing a text component using the inline rich text editor, if I delete a line break (merged 2 paragraphs into one) and then save and close the inline rich text editor, the next time I open that same text component and view its source(in the config editor), a 'span' tag gets added around the paragraph with a lot of unnecessary stylings which I don't want.
@2542692 @1709464 

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

4 replies

milind_bachani
Adobe Employee
Adobe Employee
June 8, 2022

@amohite hi,

 

I tried performing the same steps on RTE locally. For me it is working fine when I merged the two paras, there are no extra spans added at all. 

 

I am using AEM 6.5.5

resourceType :: cq/gui/components/authoring/dialog/richtext

Can you check you dont have any custom code changing the data before saving ?

Thanks,

Milind 

Kiran_Vedantam
Community Advisor
Community Advisor
June 8, 2022

Hi @amohite 

 

A couple of quick questions:

  • What's your AEM version
  • What's your core component version
  • Are you seeing any errors in the console?
  • Are you seeing any issues in the logs?
  • Can you check how the data is saved in the JCR once the component is saved?
  • Can you check if there is any custom code written for your RTE?

Thanks,

Kiran Vedantam.

DEBAL_DAS
New Member
June 8, 2022

I have tested on AEM 6.5.12 and We.retail Text component but no span tag has been added.

 

Please share .content.xml of your text component.

Debal Das, Senior AEM Consultant
BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 10, 2022