Copied to clipboard

Flag this post as spam?

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


  • suzyb 474 posts 932 karma points
    Dec 13, 2012 @ 17:51
    suzyb
    0

    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.

  • Stephen Davidson 216 posts 392 karma points
    Dec 14, 2012 @ 15:25
    Stephen Davidson
    0

    Is your telephone datatype a textstring? I think anyththing redered in a macro gets surrounding DIV also.

    S

  • suzyb 474 posts 932 karma points
    Dec 14, 2012 @ 15:27
    suzyb
    0

    Yes, they are textstring datatypes held in a "settings" node.

  • Stephen Davidson 216 posts 392 karma points
    Dec 14, 2012 @ 15:30
    Stephen Davidson
    0

    arrrg this happened to me a while back and i sorted it...let me check some of my old sites...

    S

  • Stephen Davidson 216 posts 392 karma points
    Dec 14, 2012 @ 15:40
  • Stephen Davidson 216 posts 392 karma points
    Dec 14, 2012 @ 15:42
    Stephen Davidson
    0

    Also I've read that the <p> tag issues was sorted in version 4.71

  • suzyb 474 posts 932 karma points
    Feb 01, 2013 @ 11:05
    suzyb
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft