ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
25.39k stars 2.17k forks source link

[Bug]: Delete one char in gapcursor receviced a transaction with "delete some chars and re-add some chars back" Step. #5284

Open chenyuncai opened 2 weeks ago

chenyuncai commented 2 weeks ago

Affected Packages

tiptap/vue-2 titpap/pm

Version(s)

latest

Bug Description

when I delete a char, the transaction replace step means I delete somechars and re-add it back

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

Dependency Updates

chenyuncai commented 2 weeks ago

some times input a new char , will get the same action