quill icon indicating copy to clipboard operation
quill copied to clipboard

Zhuyin Input Causes Content Duplication when using y-quill(YJS)

Open UTing1119 opened this issue 8 months ago • 2 comments

Hello! I encountered an issue with Zhuyin input while trying to sync the content. When the user is still in the process of selecting text, if another user updates the text on the same line, it causes the selected text to be duplicated.

After some research, we believe this issue occurs because Quill duplicates content when an external insertion happens.

Here is the issue I opened in y-quill: https://github.com/yjs/y-quill/issues/18

I also found some bug reports related to Korean IME, and I think this issue is similar. I only found a solution involving disabling batchStart and batchEnd, but I have no idea how to disable that in my client code.

UTing1119 avatar Mar 20 '25 02:03 UTing1119

Please check my PR on parchment: https://github.com/slab/parchment/pull/151 This fixes this issue of IME You can use my branch: https://github.com/vincentdchan/parchment/tree/fix_composition to compile your own parchment

vincentdchan avatar Apr 02 '25 13:04 vincentdchan

When code is packaged using the fix_composition branch, content edited by two people in the quil will repeat and the cursor will jump around

Chen-czy-425 avatar Apr 09 '25 09:04 Chen-czy-425