AEM · AEM 6

AEM | RTE – remove p tag


The default html container in RTE is <p>. If you do not define any container, then default container tag will be used. <p> tag has its own typographical styles, so sometime its not a good practice to use <p> tag as default tag.

RTE configuration allow us to define another tag as container tag by modifying items/items/text as:

<text
    jcr:primaryType="cq:Widget"
    name="./text"
    xtype="richtext"
    removeSingleParagraphContainer="{Boolean}true"
    singleParagraphContainerReplacement="div">
Advertisements

One thought on “AEM | RTE – remove p tag

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s