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]: Cannot insert horizontal rule at end of document #5907

Open
1 task done
bafr-forte opened this issue Dec 2, 2024 · 0 comments
Open
1 task done

[Bug]: Cannot insert horizontal rule at end of document #5907

bafr-forte opened this issue Dec 2, 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

@bafr-forte
Copy link

Affected Packages

extension-horizontal-rule

Version(s)

2.7.x -

Bug Description

When inserting a horizontal rule at the end of the document with

editor.chain().focus().setHorizontalRule().run()

a out of range error is thrown and the horizontal rule is not added to the document.

Uncaught RangeError: Position 40 out of range

Other commands - setHeading, etc. - work.

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

Horizontal rule should be added when setHorizontalRule() command is executed, even when on the end of the document, without throwing an error.

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.
@bafr-forte bafr-forte 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 2, 2024
@github-project-automation github-project-automation bot moved this to Triage open in Tiptap Dec 2, 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
No open projects
Status: Triage open
Development

No branches or pull requests

1 participant