html - Disable auto-adding of <p> tag -
i'm trying remove auto-adding of <p>
tag in cq5(version 5.6.0.20130125). i've tried add these properties text component i'm using no effect.(source)
removesingleparagraphcontainer true singeparagraphcontainerreplacement (empty string)
i've tried this solution. again, no effect.
is possible disable auto-adding of <p>
tag?
thanks ideas
edit i've tried this answer cq still adds <p>
tags code. example, have html code
<strong>headquarters:</strong> <p>my - company a.s.<br> random street 77<br> random city</p>
and after submit it, code changes to
<p><strong>headquarters:</strong></p> <p>my - company a.s.<br> random street 77<br> random city</p>
my rte looks this
<text jcr:primarytype="cq:widget" hidelabel="{boolean}true" name="./text" xtype="richtext"> <htmlrules jcr:primarytype="nt:unstructured"> <doctype jcr:primarytype="nt:unstructured"> ... </doctype> <blockhandling jcr:primarytype="nt:unstructured" removesingleparagraphcontainer="{boolean}true"/> </htmlrules> </text>
you can keep rte surrounding text <p>
tags setting removesingleparagraphcontainer
property true
long create 1 paragraph.
with chrome on mac os x (at least), holding shift while pressing enter inserts line breaks instead of paragraph breaks can still create text multiple lines. since said in your last question you're using misctools
plugin, can use source edit view peek @ markup go.
finally, set removesingleparagraphcontainer
property, you'll need create child called blockhandling
under htmlrules
node in dialog. don't need mess singeparagraphcontainerreplacement
property, if did, set on same node:
<rteplugins jcr:primarytype="nt:unstructured"> ... </rteplugins> <htmlrules jcr:primarytype="nt:unstructured"> <doctype jcr:primarytype="nt:unstructured"> ... </doctype> <blockhandling jcr:primarytype="nt:unstructured" removesingleparagraphcontainer="{boolean}true"/> </htmlrules>
edit regarding edit: using source edit feature of misctools
plugin , pasting exact text saves , loads without p
tags me in chrome on mac os x:
<strong>headquarters:</strong><br> - company a.s.<br> random street 77<br> random city
are sure dialog.xml deployed properly? maybe double-check component's dialog hierarchy looks how you'd expect in crxde lite:
Comments
Post a Comment