Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Apr 05, 2011 @ 15:38
    Ismail Mayat
    0

    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

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Apr 05, 2011 @ 15:39
    Nik Wahlberg
    0

    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. 

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Apr 05, 2011 @ 15:40
    Matt Brailsford
    0

    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

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Apr 05, 2011 @ 15:41
    Matt Brailsford
    0

    Ooops, just realized, it says it's for 4.7 only, so probably not going to help you, sorry.

  • Christian Palm 278 posts 273 karma points
    Apr 05, 2011 @ 15:44
    Christian Palm
    0

    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

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Apr 05, 2011 @ 15:49
    Ismail Mayat
    0

    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

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Apr 05, 2011 @ 16:12
    Ismail Mayat
    0

    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

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Apr 05, 2011 @ 16:14
    Matt Brailsford
    0

    Sweet! Glad it worked for you.

    Matt

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Apr 05, 2011 @ 16:22
    Nik Wahlberg
    0

    Nice alternative, I'll have to check that out too. Thanks for the tip Matt!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

    Continue discussion

Please Sign in or register to post replies