Copied to clipboard

Flag this post as spam?

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


  • seanrock 241 posts 462 karma points
    Jan 17, 2010 @ 21:03
    seanrock
    0

    prevent the tinymce editor from rewriting the html

    when i switch to html view and enter html directly, the editor rewrites it.

    example:

    i enter:

    <div><div>title</div><div>body</div></div>

    the editor writes it to:

    <div>title</div>

    seems it removes the inner div's

  • dandrayne 1138 posts 2262 karma points
    Jan 18, 2010 @ 10:29
    dandrayne
    0

    First, I'd be careful about relying on tinymce for markup like this, but

    You'd need to turn off htmltidy (afaik in umbracosettings.config) and then edit the tinymce settings config file to make sure there isn't a - char before div in the list of valid elements. As per http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements, tinymce will remove empty or nested elements if it's stipulated in this file.

    Then touch the web.config, refresh and try again.

    Dan

Please Sign in or register to post replies

Write your reply to:

Draft