• Hi there,

    we’ve encountered a few bugs in lists. Can you confirm these resp. have any idea why this happens and how to slove them?

    Switching from HTML to Visual and back…

    <ol>
    <script type="text/javascript" src="/"></script> <li>a </ol>

    becomes

    <ol><ol>
    </ol></ol><script type="text/javascript" src="/"></script><ol> <li>a </li></ol>

    ——————–

    <ol>
    <li>a
    <li>b</li>
    </ol>

    becomes

    <ol>
    <li>a
    </li><li>b</li><li>
    </li></ol>

    —————-

    <ol>
    <li>a
    <p>test</p>
    <li>b
    <p>test</p>
    </ol>

    becomes

    <ol>
    <li>a
    <p>test</p>
    </li><li>b
    <p>test</p>
    </li></ol>

    The first two produce real errors, the last one is not wrong, but it still changes the code and makes it less readable.

    Hope you can help to shed some light on this. Thanks anyway for a great and sorely neede plugin.

    https://www.ads-software.com/plugins/preserved-html-editor-markup-plus/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author J-Ro

    (@j-ro)

    So, tinyMCE attempts to correct non-standard HTML and make it standard — this isn’t really the plugin, it’s TinyMCE.

    Basically, you need to write HTML that’s not wrong — for example, in your first example, script tags should not be placed within lists. Put your script tag before or after your ol tag. For your missing li tags in the second, TinyMCE attempts to fix your mistake.

    There’s not a lot that can be done about this — it’s just how TinyMCE works.

    Thread Starter 0rca

    (@0rca)

    <script> within a list is correct HTML5.

    I know that the basic fault lies with TinyMCE, but I specifically mentioned stuff, that happens differently with the plugin enabled. Just thought you might want to know.

    Plugin Author J-Ro

    (@j-ro)

    Yep — this plugin definitely doesn’t fix all TinyMCE issues, just common ones.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Some bugs regarding lists’ is closed to new replies.