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]: error position of collaborative cursor #5901

Open
1 task done
2632755669 opened this issue Dec 2, 2024 · 0 comments
Open
1 task done

[Bug]: error position of collaborative cursor #5901

2632755669 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

@2632755669
Copy link

Affected Packages

@tiptap/core v2.8.0 ,@tiptap/extension-collaboration-cursor v2.8.0, @hocuspocus/provider v2.13.7

Version(s)

2.8.0

Bug Description

Two cooperative users, one cooperative user enters the code block, the cursor is positioned in the code block, the other user the cooperative cursor is correct,
However, when the user revocates the block, the cursor returns to the top of the line, and the other user, the cooperative cursor runs up to open a new blank line
image

this is official test address tiptap模板

step1 : open two windows editor, write a code block in a window
image
image

step2: Keep ctrl + z to undo until you undo the code block, and the following questions then arise,error cursor of position
image
image

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

the position right of collaborative when the code block undo, please help me resolve the question

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.
@2632755669 2632755669 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
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