I am using umbraco 452 i have rich text edit field and I am inserting macro into the content. It all works except for one thing if i insert the macro in between line of text eg:
some text {macro here} line continues here.
When the page renders i get
some text
macro output
line continues here
In the html before the macro an end p tag is inserted and after macro a start p tag is inserted. If you remove using the html editor and update it still re appears. Is there a way to stop this?
We have not found a solution. When we are designing/prototyping
macroes that should be used in the editor we are always designing the
macro as a block element (Full width) like a div (not floating).
You can how ever have two properties on your macro: Text before and Text after and then output the text from inside you macro
k update on this just installed shortcodes on 452 and it works so just gonna knock up a base extension and we should be on a roller or as lee put it http://www.youtube.com/watch?v=Qr4PcOQYFAw
RTE macro issue
I am using umbraco 452 i have rich text edit field and I am inserting macro into the content. It all works except for one thing if i insert the macro in between line of text eg:
some text {macro here} line continues here.
When the page renders i get
some text
macro output
line continues here
In the html before the macro an end p tag is inserted and after macro a start p tag is inserted. If you remove using the html editor and update it still re appears. Is there a way to stop this?
Regards
Ismail
I would love to see a solution to this one. I've had the same issue on a number of installation.
Cheers for any ideas.
I don't think you can stop it (I could be wrong), but I think that is one of the reasons Lee started the shortcodes project (http://our.umbraco.org/projects/developer-tools/shortcodes) so you can render content, easily, inline.
Maybe you could give that a go?
Matt
Ooops, just realized, it says it's for 4.7 only, so probably not going to help you, sorry.
We have not found a solution. When we are designing/prototyping macroes that should be used in the editor we are always designing the macro as a block element (Full width) like a div (not floating).
You can how ever have two properties on your macro: Text before and Text after and then output the text from inside you macro
Christian,
Think that is going to be best way for now. I wonder though if there is something in the tinymce config files that actually causes this to happen?
Regards
Ismail
k update on this just installed shortcodes on 452 and it works so just gonna knock up a base extension and we should be on a roller or as lee put it http://www.youtube.com/watch?v=Qr4PcOQYFAw
Sweet! Glad it worked for you.
Matt
Nice alternative, I'll have to check that out too. Thanks for the tip Matt!
is working on a reply...