-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HorizontalRule extension: inconsistent behavior #1964
Comments
I came looking for this issue, and I just want to add a few things:
This still happens, even after @philippkuehn commit above, and I agree that it shouldn't.
IMO, an empty paragraph should be added after adding the horizontal rule with the Markdown shortcut, if it's the last node being inserted in the document, so that the cursor is placed after the horizontal rule, and the user can continue typing. @cadars I'm wondering if you ended up working on a fixed version of this extension on your side? If so, do you think you could share that? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@bdbch
I guess it's because cursor still on the horizontal rule. 2022-09-15.9.22.16.mov2022-09-15.9.24.18.mov |
What’s the bug you are facing?
Inserting an HorizontalRule produces different results depending on:
How can we reproduce the bug on our side?
With just the HorizontalRule extension: https://embed.tiptap.dev/preview/Nodes/HorizontalRule
---
or___
or***
, an empty<p>
is created before the node.With the StarterKit extensions: https://embed.tiptap.dev/preview/Examples/Default
Type
---
or___
or***
, an empty<p>
is created before the node.Empty the editor, click horizontal rule, this markup gets created:
( I am using the tiptap.dev examples but I also can reproduce these issues locally, with all dependencies updated)
Can you provide a CodeSandbox?
No response
What did you expect to happen?
setHorizontalRule
command should not add more than one empty paragraph after it.Anything to add? (optional)
As always, thanks for your time, and this amazing editor!
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: