For removing the <p> tag we have to create a node named htmlRules having jcr:primary type nt:unstructured. This node will have to create under the widget node which xtype is richtext.
In my case, I have created a node named “heading with property xtype = richext“ and created a node named as htmlRules under this node.

Now you have to create a node named as blockHandling under the htmlRules node and add properties as
jcr:primaryType = “nt:unstructured” and
removeSingleParagraphContainer = “{Boolean}true”.

Now go back to your content page and refresh it. Add a line in RTE and click on Ok. Now you find that <p> tag has been removed from the rich text.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.