editor-js / list

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

Backspace at beginning of first list item #27

Closed alexanderjulmer closed 2 weeks ago

alexanderjulmer commented 3 years ago

Expected behaviour: Hitting Backspace at the beginning of the first item of a list turns the list items into a paragraph block.

Actual behaviour: Hitting Backspace lets the cursor jump to the end of the previous block.

Workaround: Cut and past first list item, then return the empty list item.

Reasoning: Turning the first list items into the default block (usually a paragraph) is default behaviour of both Google Docs, Microsoft Word, and Dropbox Paper. It allows users to turn an item into a paragraph. This is often needed as list items might grow too long and users decide to turn them into paragraphs.