AEM 6.5 useSemanticMarkup removes styles for tag in Rich Text Editor

Avatar

Avatar

sasha76

Avatar

sasha76

sasha76

15-01-2021

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?

AEM 6.5 RTE Plugin.

Accepted Solutions (0)

Answers (0)