Skip to content

renderFromHTML duplicates nested lists content #121

@thecliffparis

Description

@thecliffparis

Hi,

renderFromHTML duplicates lists content in the editor.

Here is an example to reproduce the error.
I hope this helps to fix the bug.

<script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/@editorjs/list@latest"></script>
...

editor.blocks.renderFromHTML(`<div>  
<ul>
    <li>David 1
      <ul>
        <li>Bulletpoint 1.A</li>
        <li>Bulletpoint 1.B</li>
      </ul>
    </li>
    <li>Erica 2
      <ul>
        <li>Bulletpoint 2.A</li>
        <li>Bulletpoint 2.B</li>
      </ul>
    </li>
  </ul>
</div>`);

image

Should be like this
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions