How to drop an attribute when adding a new list element with enter? #3071
Unanswered
OliverWales
asked this question in
Q&A
Replies: 2 comments
-
Overriding |
Beta Was this translation helpful? Give feedback.
0 replies
-
@12joan, you were right here. In |
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
-
Reason: I want the user to have the option to start lists with numbers greater than 1. by typing e.g. "5. ". I then detect this and make a numbered list element with an extra attribute
start: 5
. However, when enter is pressed this attribute is copied to the new list item so that one also "resets" the list numbering.What's the best way to strip this
start
property on enter, without losing other attributes I'd like to keep e.g. indentation level?Beta Was this translation helpful? Give feedback.
All reactions