Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

AEM 6.5 useSemanticMarkup removes styles for tag in Rich Text Editor

Avatar

Level 1

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?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6.5
1 Reply

Avatar

Administrator

@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