Skip to content
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

[Bug]: HorizontalRule can trap you in an uneditable editor #5926

Open
1 task done
gereog opened this issue Dec 10, 2024 · 0 comments
Open
1 task done

[Bug]: HorizontalRule can trap you in an uneditable editor #5926

gereog opened this issue Dec 10, 2024 · 0 comments
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@gereog
Copy link

gereog commented Dec 10, 2024

Affected Packages

extension-horizontal-rule

Version(s)

Most recent

Bug Description

See https://tiptap.dev/docs/examples/basics/default-text-editor

  1. delete all the contents of the editor (ctrl-a backspace for example)
  2. use the Horizontal rule button to insert a horizontal rule
  3. press backspace (the paragraph where your cursor was gets deleted)
  4. click outside of the editor

Now try to continue editing.

No matter what you do, you cannot get a cursor inside of the editor again, you cannot continue editing.

Because the only contents of the editor are a contenteditable="false" horizontal rule.

Browser Used

Chrome

Code Example URL

https://tiptap.dev/docs/examples/basics/default-text-editor

Expected Behavior

There should always be a cursor inside of the editor

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.
@gereog gereog added Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug
Projects
None yet
Development

No branches or pull requests

1 participant