Hi, I love the stripParagraph="true" property of Umbraco tags in the MasterPages. However I've noticed that when placing this property on a RichText field, the <p> tags are still added around any macros added within the editor alongside other content.
For example, I have a "sidebar" field using richtext. If I add my "subnavigation" macro into this field, everything goes great. However, if I then add additional content below the macro in the richtext editor (call to action buttons, related links, etc. Umbraco will wrap only the macro in a superfluous <p> tag.
Is there a workaround for this? It looks really bad. I would like to have the subnavigation available as an option to page editors which is why I created it as an editor macro in the first place.
One solution you could try is make some changes to your stylesheet associated to this part of the RTE. You could tell call a class like this, i did this on one of my projects.
The issue isn't within the RTE itself... clicking the HTML button on the RTE doesn't show a P tag wrapped around the macro. The tag only appears on render when browsing the page output.
Personally I think it's an Umbraco bug. This has been reported on CodePlex already but hasn't received any attention:
Cant argue on this!!....:) Have never used v4.6.1.....But even if its being rendered by the browser you should be able to style the <p> and get ride of all the Line-hieght and spacing though.
StripParagraph doesn't work around macros?
Hi, I love the stripParagraph="true" property of Umbraco tags in the MasterPages. However I've noticed that when placing this property on a RichText field, the <p> tags are still added around any macros added within the editor alongside other content.
For example, I have a "sidebar" field using richtext. If I add my "subnavigation" macro into this field, everything goes great. However, if I then add additional content below the macro in the richtext editor (call to action buttons, related links, etc. Umbraco will wrap only the macro in a superfluous <p> tag.
Is there a workaround for this? It looks really bad. I would like to have the subnavigation available as an option to page editors which is why I created it as an editor macro in the first place.
Hi Alex,
One solution you could try is make some changes to your stylesheet associated to this part of the RTE. You could tell call a class like this, i did this on one of my projects.
.style p{font:normal 12px/14px arial;}
Hi Fuji,
The issue isn't within the RTE itself... clicking the HTML button on the RTE doesn't show a P tag wrapped around the macro. The tag only appears on render when browsing the page output.
Personally I think it's an Umbraco bug. This has been reported on CodePlex already but hasn't received any attention:
http://umbraco.codeplex.com/workitem/29958
http://umbraco.codeplex.com/workitem/28669
FYI I decided to use a workaround and create a Macro Container property on the page(s) instead. Annoying but better than nothing.
Cant argue on this!!....:) Have never used v4.6.1.....But even if its being rendered by the browser you should be able to style the <p> and get ride of all the Line-hieght and spacing though.
is working on a reply...