quill
quill copied to clipboard
Zhuyin Input Causes Content Duplication when using y-quill(YJS)
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.
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
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