feat: ignore input method procedure in history plugin #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Relate issue 1311
It's not perfect cover with input method scenario, still have edge case when change select the Chinese word with the help of input method.
To breif something what i did.
Basically, I create a new function named 'checkNewGroup', it will overwrite the original newGroup logical and it will produce the newGroup state for history state .
In Breif, Every applied transaction of prosemirror-history plugin will lookup composing when the
applyTransactionfunction invoked. In order to merge pinyin character's until compositionend event fired when using input method like chinesesogou pinyin(chinese_name: 搜狗输入法).There is a little break change for integrate this ime newGroup patch.
@marijnh
This code is so strangely wrong (importing stuff that doesn't exist, adding
thistype annotations that make no sense) that I don't really have the patience to review it seriously, sorry.Pull request closed