-
-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codemirror/view 6.28.2 version will cause abnormal input of Chinese input method #1396
Comments
See that's not really helpful. Please let us know which browser, platform, and precise IME you're seeing this with. |
https://4bug-report.tiddlyhost.com/ You can reproduce this bug HERE online |
Related information has been supplemented |
This issue can be reproduced on https://codemirror.net/ |
|
What IME language are you using? (Precisely — I know you mention Chinese, but Windows supports a bunch of different Chinese IMEs.) What key strokes demonstrate the issue? What is the expected outcome, and what happens in CodeMirror? Please describe this so that someone who doesn't know Chinese can verify the issue. |
For me, IME language is Chinese (Simplified, China).When comes to keyboards, both Microsoft Pinyin and Microsoft Wubi can trigger this problem You can try to input zhongwen with Microsoft Pinyin on https://codemirror.net/ in a Chromium browser(My edge and chrome are both 126+), Firefox just works well. Seems every character can reproduce this problem that the IME would not find the correct position. |
For me, using Chrome 126 with simplified Chinese IME, typing zhongwen + space in the editor on codemirror.net gives 中文, which looks reasonable. Is there anything else I should be doing to reproduce the issue? |
Yes, gives 中文 is correct. However, the problem is when you're typing, the IME keeps jump up and down.My chrome version is 126.0.6478.127, and edge is 126.0.2592.81 Recording.2024-07-01.142726.mp4 |
Oh right, I see what you mean now. That was an obvious bug. Attached patch (released as 6.28.3) should fix it. Not sure how that that wasn't visible on Chrome Linux. |
It seems that this issue still persists, and I am currently using version @codemirror/view@6.28.3. Browser and platform Chrome: 126.0.6478.127 You can attempt to replicate it in the following online example. https://codesandbox.io/p/devbox/elated-cherry-ph6y5c?file=%2Findex.html%3A21%2C36 And event |
Are you seeing the incorrectly positioned IME widget problem, or are you seeing another problem?
|
Yes, that looks like the old bug. Is it gone on https://codemirror.net for you? |
It still appears sometimes |
It can be 100% reproduced if I try to input enormous characters in the inputbox (In this video, 28000 characters) Recording.2024-07-01.212905.mp4 |
It happen on Chrome. Firefox is normal. |
FIX: Fix a bug where EditContext-based editing could corrupt the document in some situations. Issue codemirror/dev#1396
I think I managed to reproduce the issue visible in your screencast. Try again with 6.28.4. The IME interface appearing the wrong place happens for me when I start the composition at the start of a line. I verified that CodeMirror is giving the correct coordinates to the browser when this happens, so I suspect that is a Chrome bug. I'll spend some more time trying to reproduce and report that later. |
Sure, the problem with long article is fixed and the other problem remains, thanks for your work! |
I've reported this in the Chrome tracker as #351029417. Sometimes clicking the +1 button at the top of an issue there helps get attention to it. |
I encountered the same issue on Mac. The phenomenon I observed is that in Chrome with CodeMirror 6, the Chinese input method hint box moves to the upper left with input. The same browser behaves normally with CodeMirror 5. CodeMirror 6 with Safari is also normal. |
I'm aware it is still happening. See the Chrome issue I linked above. That has not been fixed that. |
A fix has been merged for Chrome. I'm not sure which version it'll appear in, but I'm going to close this, since I don't see anything more that can be done from my side. |
Describe the issue
Screenity.video.-.Jun.23.2024.mp4
The last version of the commit codemirror/view will cause abnormal input of Chinese input method(IME), and some console errors will appear (the error message is not 100% reproducible for the time being)
Browser and platform
google chrome: 126.0.6478.116
Windows 11
Reproduction link
The text was updated successfully, but these errors were encountered: