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

Improperly nested ul/li throws exception #592

Closed
zacharytamas opened this issue Feb 23, 2016 · 1 comment
Closed

Improperly nested ul/li throws exception #592

zacharytamas opened this issue Feb 23, 2016 · 1 comment

Comments

@zacharytamas
Copy link

On a project I'm working on when we load HTML generated by a previous editor in we have occasional cases where a nested list is marked up "the old way", like this:

<ul>
    <li>My item</li>
    <ul>
        <li>Sub item 1</li>
    </ul>
</ul>

This style of nesting used to be valid but in newer HTML you are to nest the <ul> inside a <li>. When quill encounters this, in at least Chrome, it throws an exception like #182

Would fixing the markup at runtime be too out of scope for Quill? After all, we can't always control what old HTML may get loaded into Quill.

@jhchen jhchen changed the title Improperly nested ul/li will crash the editor Improperly nested ul/li throws exception Feb 24, 2016
@jhchen
Copy link
Member

jhchen commented Feb 24, 2016

It's possible to pass in a custom onConvert function into Quill's paste-manager to allow handling arbitrary, even invalid, input: #401.

@jhchen jhchen closed this as completed Feb 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants