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]: Delete one char in gapcursor receviced a transaction with "delete some chars and re-add some chars back" Step. #1475

Open
chenyuncai opened this issue Jun 28, 2024 · 3 comments

Comments

@chenyuncai
Copy link

Bug Description
when I delete a char, the transaction replace step means I delete somechars and re-add it back, and loss a char what I real delete, it seems fine for end-user, but developer cannot track what real change user made

Browser Used
Chrome

Code Example URL
https://codesandbox.io/p/sandbox/tiptap-2-bug-ph3v4w

Expected Behavior
When I delete a char at anywhere, I want the changed range gived

Additional Context (Optional)
I try to make a track-change extension for tiptap, it works in most normal cases but wrong in some custom-node cursor gap, I try to understand why prosemirror give this kind of "ReplaceStep" back

@chenyuncai
Copy link
Author

some times input a new char , will get the same action, it seems related to node gap cursor

@marijnh
Copy link
Member

marijnh commented Jun 28, 2024

Can this be reproduced without TipTap and Vue? I'm not going to debug those libraries.

@chenyuncai
Copy link
Author

OK, I will create a new link with clean prosemirror in monday, thanks response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants