Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect handling of initial or pasted nested lists #906

Closed
cutteroid opened this issue Sep 1, 2016 · 2 comments
Closed

Incorrect handling of initial or pasted nested lists #906

cutteroid opened this issue Sep 1, 2016 · 2 comments

Comments

@cutteroid
Copy link

At the moment editor cant handle nested lists

  1. Visit playground

  2. Paste this in html tab

     <div id="editor-container">
            <ol>
                <li>one</li>
                <li>
                    <b>two</b>
                    <ul>
                        <li>unordered</li>
                        <li>unordered</li>
                    </ul>
                </li>
                <li>three</li>
            </ol>
        </div>
  3. Notice incorrect list structure in editors tab

Version: 1.0.0-rc.4

@jhchen jhchen changed the title Incorrect handling of nested lists Incorrect handling of pasted nested lists Sep 3, 2016
@jhchen jhchen changed the title Incorrect handling of pasted nested lists Incorrect handling of initial or pasted nested lists Sep 3, 2016
@lo1tuma
Copy link

lo1tuma commented Oct 14, 2016

Similar to the mentioned issue, I guess I come across a scenario that can’t be expressed as a Delta object where line breaks are used to specify block elements/styles:

         <ol>
            <li>one</li>
            <li>
                <b>two</b>
                <ul>
                    <li>unordered</li>
                    <li>unordered</li>
                </ul>
                <b>still two</b>
            </li>
            <li>three</li>
        </ol>

As you can see there is another text after the nested lists ends which still belongs to the second list item.

@jhchen jhchen closed this as completed in 643f65a Apr 17, 2017
@jhchen
Copy link
Member

jhchen commented Apr 17, 2017

There is the remaining issue of the numbering being incorrect in the example but there is another issue #829 regarding this specifically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants