AEM 6.5 useSemanticMarkup removes styles for tag in Rich Text Editor | Community
Skip to main content
January 15, 2021
Question

AEM 6.5 useSemanticMarkup removes styles for tag in Rich Text Editor

  • January 15, 2021
  • 1 reply
  • 989 views

Hi All,

I need to replace <div> tags with <p>. So I tried to use 'semanticMarkupMap' and it works fine except for one thing:

it removes all styles for tag. For example: <div style="text-align: center;"> to <p>

<docType jcr:primaryType="nt:unstructured">
<typeConfig jcr:primaryType="nt:unstructured"
useSemanticMarkup="{Boolean}true">
<semanticMarkupMap jcr:primaryType="nt:unstructured"
div="p"/>
</typeConfig>
</docType>

Can you please provide some inputs?

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

1 reply

kautuk_sahni
Community Manager
Community Manager
October 18, 2024

@sasha76 If you have successfully found a solution on your own, we kindly ask that you share it with the community for future reference and mark it as the correct answer.

Kautuk Sahni