ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.8k stars 2.48k forks source link

Block-level or complex elements inside list prevent new list items creation #3912

Open jswiderski opened 4 years ago

jswiderski commented 4 years ago

Type of report

Bug

Provide detailed reproduction steps (if any)

  1. Open attached CodePen https://codepen.io/j_swiderski/pen/YzXrExe
  2. Put caret at the start or at the end of the second item of each list (separately of course)
  3. Press Enter

Expected result

New list item should be created.

Actual result

New line is inserted and there is no way to create new list item.

Other details

NOTES:

jswiderski commented 4 years ago

Perhaps in worst case scenario a Magic Line plugin could be extended here insert empty lines between such element and list item?

Assuming that Magic Line inserts new line, here is how it would look like: issue1