You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please save me some time and use the following template. In 90% of all issues I can't reproduce the problem because I don't know what exactly you are doing, in which environment, or which y-* version is responsible. Just use the following template even if you think the problem is obvious.
Checklist
Are you reporting a bug? Use github issues for bug reports and feature requests. For general questions, please use https://discuss.yjs.dev/
Describe the bug
I ran the y-quill demo locally and opened two windows to simulate different clients. When I used Korean IME to quickly type in one of the windows, and then clicked on a line in the other window and tried to continue typing there, the error occurred.
The strange thing is that I can't reproduce this issue in the online demo.
Since y-webrt didn’t work for me, I just replaced it with y-websocket. Same as the online demo.
To Reproduce
Steps to reproduce the behavior:
Run y-quill demo locally.
Open the demo in 2 windows.
Switch to a Korean IME, I used 3-Set Korean.
Create some empty lines in the editor.
Focus into the first line of the editor in window A.
Press and hold T key.
Click into another line of the editor in window B.
Content synchronization error, the content on both sides is different.
Expected behavior
The content is synced correctly.
Screenshots
Screen.Recording.2024-08-28.at.15.24.59.mov
Environment Information
Browser / Node.js [e.g. Chrome, Firefox, Node.js]
Yjs version and the versions of the y-* modules you are using [e.g. yjs v13.0.1, y-webrtc v1.2.1]. Use npm ls yjs to find out the exact version you are using.
Additional context
BTW, this is also an issue that occurs when using Korean IME in my project, which is also a combination of quill+yjs.
I'm a sponsor 💖
This issue is a blocker for my project.
The text was updated successfully, but these errors were encountered:
The last comment was a phishing attack by a random user. I hope you didn't download anything.
These kinds of issues are extremely hard to debug for me. Are you saying that the demo (https://demos.yjs.dev/quill/quill.html) is working but the demo in this repository (npm run demo) is not?
If that's the case, then this might be an issue with the quill editor version.
To verify events that we receive from the quill editor, could you modify the source-code of y-quill and add this logging statement?
// line 104this._quillObserver=(eventType,delta,state,origin)=>{console.log({ eventType, delta, state, origin })// <--- add this line...
It would really help me understand the problem. Thanks!
Yes, I didn't download those files, I was wary of downloading files, thanks for the heads up!
These kinds of issues are extremely hard to debug for me. Are you saying that the demo (demos.yjs.dev/quill/quill.html) is working but the demo in this repository (npm run demo) is not?
Yes, I just run the demo on my local with npm run start, and noticed the issue when testing.
Then I try to reproduce the issue the online demo(demos.yjs.dev/quill/quill.html), but it works fine there.
Thanks for pointing me in that direction, I'll give it a try!
HI @dmonad
I also encountered the same problem when using Chinese for collaborative editing.
There were no errors when running the demo locally at first. But after changing the default version to the latest version
Entering Chinese characters will result in errors like @weiQuill . But if you enter English characters, there will be no problem
Checklist
Describe the bug
I ran the y-quill demo locally and opened two windows to simulate different clients. When I used Korean IME to quickly type in one of the windows, and then clicked on a line in the other window and tried to continue typing there, the error occurred.
The strange thing is that I can't reproduce this issue in the online demo.
Since
![QQ_1724830583941](https://private-user-images.githubusercontent.com/68313886/362181420-0efd2aa8-7cf4-4e84-ade8-f69930229e60.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTMzODUsIm5iZiI6MTczOTE5MzA4NSwicGF0aCI6Ii82ODMxMzg4Ni8zNjIxODE0MjAtMGVmZDJhYTgtN2NmNC00ZTg0LWFkZTgtZjY5OTMwMjI5ZTYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEzMTEyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAxOTBiYWFiMTRlNGQ5ZTUxOWViYzdhNGE3ZDQyNTBhMWJiNTNhMThmMWM4MDQ3NTUyOWYxMDRlNzQ1NjBiNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GQp0d_lyTz3ZYJbamXteTVxdVu6REHiJrG96pmLK0_c)
y-webrt
didn’t work for me, I just replaced it withy-websocket
. Same as the online demo.To Reproduce
Steps to reproduce the behavior:
T
key.Expected behavior
The content is synced correctly.
Screenshots
Screen.Recording.2024-08-28.at.15.24.59.mov
Environment Information
npm ls yjs
to find out the exact version you are using.Additional context
BTW, this is also an issue that occurs when using Korean IME in my project, which is also a combination of quill+yjs.
The text was updated successfully, but these errors were encountered: