Add macro in rte without it being surrounded by paragraphs
I have a macro that spits out a different phone number depending on various criteria. I'd like to be able to insert this macro into the rte so the correct phone number is inserted into the text as part of a normal sentence. However the editor always seems to end one paragraph before the macro and start a new one after.
So instead of xxx 0123 456789 yyy I get xxx
0123 456
yyy.
Is there a way to stop this happening when macros or preferrably this specific macro is added in the rte.
As mentioned in that thread, it isn't empty paragraph tags that are my problem. It's the editor closing a paragraph, putting my macro contents in then opening a new paragraph when I want the macro inserted into the middle of one paragraph.
Add macro in rte without it being surrounded by paragraphs
I have a macro that spits out a different phone number depending on various criteria. I'd like to be able to insert this macro into the rte so the correct phone number is inserted into the text as part of a normal sentence. However the editor always seems to end one paragraph before the macro and start a new one after.
So instead of xxx 0123 456789 yyy I get xxx
0123 456
yyy.
Is there a way to stop this happening when macros or preferrably this specific macro is added in the rte.
Is your telephone datatype a textstring? I think anyththing redered in a macro gets surrounding DIV also.
S
Yes, they are textstring datatypes held in a "settings" node.
arrrg this happened to me a while back and i sorted it...let me check some of my old sites...
S
have you tried the package mentioned here?
http://our.umbraco.org/forum/using/ui-questions/4224-Tinymce-adding-in-p-p-tags-before-and-after-inline-macros?p=1
S
Also I've read that the <p> tag issues was sorted in version 4.71
Back working on this again.
As mentioned in that thread, it isn't empty paragraph tags that are my problem. It's the editor closing a paragraph, putting my macro contents in then opening a new paragraph when I want the macro inserted into the middle of one paragraph.
is working on a reply...