Deleting list items #5608
Unanswered
mattparlane
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all...
I am happy with Slate's native handling of lists, except for one behaviour. Other editors (Google Docs, Word I think) delete the current list item when your cursor at a list item, and it's empty, and you press Enter.
I've had a crack at this myself, and I believe I've figured out how to identify this condition, but I can't make it delete the current list item.
I believe it will have to break the
<ul>
/<ol>
object into two if this happens in the middle of the list, I haven't looked into that yet.Any ideas? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions