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]: Redo Edits with Collaboration Extension Leaves Cursor in Incorrect Position #5802

Open
1 task done
kaxim opened this issue Nov 5, 2024 · 0 comments
Open
1 task done
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

@kaxim
Copy link

kaxim commented Nov 5, 2024

Affected Packages

core, extension-collaboration, extension-collaboration-cursor

Version(s)

2.9.1

Bug Description

When using the redo functionality with Tiptap's collaboration extension, the cursor does not return to the expected position after performing a redo. This behavior disrupts the editing flow as users must manually reposition the cursor, impacting the overall collaboration experience.

Steps to Reproduce:

  1. Open a collaborative editor instance in Tiptap with the collaboration extension enabled.
  2. Perform a series of edits (e.g., add text, delete characters).
  3. Undo the edits sequentially.
  4. Redo the edits.

Expected Behavior: The cursor should return to the same position it was in before the edits were undone, or at the next logical position following a redo.

Observed Behavior: The cursor is placed incorrectly; it remains at the current selection and doesn’t move.

Environment:

  • Tiptap Version: 2.9.1
  • Browser: Chrome 130.0.6723.91

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

The cursor should return to the same position it was in before the edits were undone, or at the next logical position following a redo.

Additional Context (Optional)

This issue may relate to how the collaboration extension handles cursor positions during undo/redo actions.

Dependency Updates

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