• Hi,
    I created a new format/style: type “block”, typevalue “div” and checked “exact” and “wrapper”.

    When I apply this style to a paragraph of text which ends with an ul element the div only wrapps the text and each li but doesn’t wrapps the ul element itself. So the plugin creates invalid markup.

    Initial state:

    Lorem ipsum
    
    <ul>
    <li>Lorem ipsum</li>
    <li>Lorem ipsum</li>
    <li>Lorem ipsum</li>
    </ul>

    Exptected result:

    <div class="some-class">
    Lorem ipsum
    
    <ul>
    <li>Lorem ipsum</li>
    <li>Lorem ipsum</li>
    <li>Lorem ipsum</li>
    </ul>
    </div>

    Actual result:

    <div class="some-class">
    Lorem ipsum
    </div>
    
    <ul>
    <div class="some-class"><li>Lorem ipsum</li></div>
    <div class="some-class"><li>Lorem ipsum</li></div>
    <div class="some-class"><li>Lorem ipsum</li></div>
    </ul>

    Is there anything I can do to get the ul element wrapped properly?
    Thanks!

    https://wordpress.org/plugins/tinymce-and-tinymce-advanced-professsional-formats-and-styles/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Element not wrapping ul but li’ is closed to new replies.