Skip to main content
New Participant
June 8, 2022

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

  • June 8, 2022
  • 4 replies
  • 1644 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

BrianKasingli
New Participant
June 10, 2022
DEBAL_DAS
New Participant
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.

Kiran_Vedantam
New Participant
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.

milind_bachani
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