Copied to clipboard

Flag this post as spam?

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


  • Steffen Agger 13 posts 34 karma points
    Sep 14, 2012 @ 16:31
    Steffen Agger
    0

    Inline macro in RTE

    When creating a macro in the RTE (TinyMCE in 4.7.2) it it automatically set outside the current paragraph due to TinyMCE closing the p-tag when Umbracos Marco-div is inserted, and re-opening the p-tag again after the macro-div.

    Example:

    Original paragraph: 

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a lacus non mi feugiat gravida. Quisque aliquet scelerisque viverra.

    I want to insert an inline macro:

    Lorem ipsum dolor sit amet, <macro content> consectetur adipiscing elit. Donec a lacus non mi feugiat gravida. Quisque aliquet scelerisque viverra.

    But the result is:

    Lorem ipsum dolor sit amet,

    <macro content>

     consectetur adipiscing elit. Donec a lacus non mi feugiat gravida. Quisque aliquet scelerisque viverra.

     

    Are there any fix for this ?

  • Matthias 87 posts 173 karma points
    Sep 17, 2012 @ 08:47
    Matthias
    0

    Hi,

    it will work when you use a div-tag instead of the p-tag. I don't know if it's suitable in your case.

    Matthias

  • dan 29 posts 53 karma points
    Sep 18, 2012 @ 21:18
    dan
    0

    There isn't a way around the div tags that are placed around the macro, but you could probably use some css to display that div inline with the text.

Please Sign in or register to post replies

Write your reply to:

Draft