Copied to clipboard

Flag this post as spam?

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


  • Simon Dingley 1470 posts 3427 karma points c-trib
    Jun 30, 2016 @ 13:14
    Simon Dingley
    0

    TinyMCE Rich Text Editor Moves Macro Outside of Block Level Elements

    The issue can be found here:

    TinyMCE Rich Text Editor Moves Macro Outside of Block Level Elements http://issues.umbraco.org/issue/U4-8672

    Essentially what happens is that if an editor wants to insert a macro inline inside of a block element like a <p /> they can't because the TinyMCE config won't allow it which is quite right in most situations however the issue is only caused by the fact that macros are rendered in the RTE in a <div /> and when they are rendered on the front end they won't actually be breaking any markup rules.

    Initially I thought that we could address this by implementing the valid_children configuration however on further thought this might not be ideal due to the fact that its means allowing the rules to be broken in cases where it is not desired.

    Perhaps we need to come up with a custom element for encapsulating macro content inside of the RTE?

    I'm looking for input on how people think this might be best tackled?

    Thanks, Simon

Please Sign in or register to post replies

Write your reply to:

Draft