editor-js / list

Advanced List tool for the Editor.js.
MIT License
51 stars 48 forks source link

Delete in empty list item #28

Closed alexanderjulmer closed 2 weeks ago

alexanderjulmer commented 3 years ago

Expected behaviour: Hitting Delete in an empty list item deletes the list item and moves the cursor to the beginning of the subsequent list item (if any) or to the beginning of the next block.

Actual behaviour: Hitting delete has no effect.

Workaround: Hit Backspace to delete empty list item, then move cursor manually.

Reasoning: Delete in an empty list item is default behaviour of Google Docs, Microsoft Word and Dropbox Paper. Not implementing it confuses the user.