nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
16.94k stars 1.72k forks source link

Task becomes Unordered list item after backspacing in WYSIWYG #3131

Open ghost opened 12 months ago

ghost commented 12 months ago

Describe the bug

In WYSIWYG mode, when going back to Task area by pressing backspace, the line became unorder list item instead of Task.

To Reproduce

Steps to reproduce the behavior:

  1. Change to WYSIWYG mode.
  2. Add new task by Task button in toolbar.
  3. Write some tasks.
  4. Leave Task area by pressing Enter 2 times.
  5. Go back to Task area by pressing Backspace.
  6. An unorder list item appears instead of a Task.

Expected behavior

When going back to list item area using Backspace, the list type should be the same as previous.

Screenshots

image image