ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.54k stars 3.7k forks source link

GHS duplicates attributes on Enter key press #12174

Closed jswiderski closed 2 years ago

jswiderski commented 2 years ago

📝 Provide detailed reproduction steps (if any)

  1. Go to https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html#demo
  2. Switch to source mode and paste <h2 id="abc">Hello</h2>
  3. Put cursor behind "o" or between "l^l"
  4. Press Enter

✔️ Expected result

New Paragraph gets created or new H2 gets created

❌ Actual result

New Paragraph gets created or new H2 gets created but with duplicated id attribute

<h2 id="abc">
    Hello
</h2>
<p id="abc">
    &nbsp;
</p>
<h2 id="abc">
    Hel
</h2>
<h2 id="abc">
    lo
</h2>

❓ Possible solution

If you have ideas, you can list them here. Otherwise, you can delete this section.

📃 Other details


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

Reinmar commented 2 years ago

DUP of #11518