Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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
0 Replies