Hi Team,
I am getting <p> appending in all the times in Touch ui.
I followed the document to remove, but still getting <p> .
any suggestions to remove that.
Solved! Go to Solution.
Views
Replies
Total Likes
Here's few thought:
I am assuming that you are referring to those <p> which are generated when you type something in RTE and view source edit.
The screenshot you shared is for format drop down you see in richtext and its has nothing to do with <p> tag generated
The default behavior of AEM generates those <p> tags and can only be removed if you author only one paragraph by adding property removeSingleParagraphContainer suggested above, how ever if you still want to removed those, I would suggest:
1. Customize RTE component and override this behavior.
2, Strip all <p> tags from the data you received from RTE in your JSP.
Could you share the doc link which you followed and didn't worked ?
edubey wrote...
Could you share the doc link which you followed and didn't worked ?
Here is my dialog
<rtePlugins jcr:primaryType="nt:unstructured">
<paraformat jcr:primaryType="nt:unstructured">
<formats jcr:primaryType="cq:widgetCollection">
<paragraph
jcr:primaryType="nt:unstructured"
tag="p"
description="Paragraph">
</paragraph>
</formats>
</paraformat>
</rtePlugins>
If i missed some thing in dialog, sorry please correct me.
Can you try adding removeSingleParagraphContainer = true in you rte properties and the author one paragraph in rte to see results
Documentation link: http://docs.adobe.com/docs/en/cq/5-6-1/widgets-api/index.html?class=CQ.form.RichText
edubey wrote...
Can you try adding removeSingleParagraphContainer = true in you rte properties and the author one paragraph in rte to see results
Documentation link: http://docs.adobe.com/docs/en/cq/5-6-1/widgets-api/index.html?class=CQ.form.RichText
i Changed but still am getting.
I attached my new dialog and nodes.
Please let me know if i need add some thing.
<rtePlugins jcr:primaryType="nt:unstructured"
removeSingleParagraphContainer="true">
<paraformat
jcr:primaryType="nt:unstructured"
features="*">
<formats jcr:primaryType="cq:WidgetCollection">
<p
jcr:primaryType="nt:unstructured"
description="p"
tag="p"/>
<h1
jcr:primaryType="nt:unstructured"
description="h1"
tag="h1"/>
<h2
jcr:primaryType="nt:unstructured"
description="h2"
tag="h2"/>
<h3
jcr:primaryType="nt:unstructured"
description="h3"
tag="h3"/>
<h4
jcr:primaryType="nt:unstructured"
description="h4"
tag="h4"/>
</formats>
</paraformat>
</rtePlugins>[img]Screen Shot 2015-08-27 at 1.09.20 PM.png[/img]
Here's few thought:
I am assuming that you are referring to those <p> which are generated when you type something in RTE and view source edit.
The screenshot you shared is for format drop down you see in richtext and its has nothing to do with <p> tag generated
The default behavior of AEM generates those <p> tags and can only be removed if you author only one paragraph by adding property removeSingleParagraphContainer suggested above, how ever if you still want to removed those, I would suggest:
1. Customize RTE component and override this behavior.
2, Strip all <p> tags from the data you received from RTE in your JSP.
Utilising the miscTools feature that the RTE provides, and along with the AEM Sling Model backend, removing the P tags can be done without a problem,
Refer to this blog article for a full tutorial.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies