How to delete HorizontalRule on backspace? #5925
Unanswered
gereog
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See https://tiptap.dev/docs/examples/basics/default-text-editor
If you delete all the contents of the editor (ctrl-a backspace for example), then use the
Horizontal rule
button to insert a horizontal rule, then press backspace, the paragraph where your cursor was gets deleted, but the horizontal rule remains.Now click out of the editor.
Now try to continue editing.
No matter what you do, you cannot get a cursor inside of the editor again.
Because the only contents of the editor are a
contenteditable="false"
horizontal rule.I think there are two ways to solve this problem:
<hr>
Can anyone help me to solve this problem for the HorizontalRule?
Beta Was this translation helpful? Give feedback.
All reactions