Skip to content

Content initializes incorrectly with specific init HTML #1580

Closed
@Mgsy

Description

@Mgsy

Is this a bug report or feature request? (choose one)

🐞 Bug report

💻 Version of CKEditor

Latest master.

📋 Steps to reproduce

  1. Prepare the HTML document with the following content:
<div id="editor">
        <blockquote>
           <ul>
              <li>list Item</li>
           </ul>
        </blockquote>
        <p>paragraph</p>
</div>
  1. Initialize the editor.

✅ Expected result

The paragraph is outside the blockquote.

❎ Actual result

The paragraph is inside the blockquote.

📃 Other details that might be useful

JSFiddle - https://jsfiddle.net/7n2oaurg/

It loads properly if the init HTML is wrapped within div:

<div id="editor">
        <blockquote>
           <div>
              <ul>
                 <li>list Item</li>
              </ul>
           </div>
        </blockquote>
        <p>paragraph</p>
</div>

Metadata

Metadata

Assignees

Labels

type:bugThis issue reports a buggy (incorrect) behavior.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions