codemirror / codemirror5

In-browser code editor (version 5, legacy)
http://codemirror.net/5/
MIT License
26.77k stars 4.96k forks source link

Text deletion on selection (Chinese input) #7021

Open devnaumov opened 1 year ago

devnaumov commented 1 year ago

We are experiencing unexpected text deletion on selection when typing in Chinese. When we type something in Chinese and then try to select parts of the text, it disappears. The reason for this is that CodeMirror fires an event with"text": "". This issue started to happen since version 5.65.8, which may be related to the following fixes:

We are still experiencing this problem on the latest release, version 5.65.12. Can you advise on what might be wrong?

Additional Information

Thank you for your help in advance!

https://user-images.githubusercontent.com/48489896/220913441-a1778890-0d6c-4277-b212-02684191ac4f.mov


image
devnaumov commented 1 year ago

Probably linked to the https://github.com/codemirror/codemirror5/issues/6893

5201314999 commented 2 days ago

i have the same bug

5201314999 commented 1 day ago
image

i decrease the version of codemirror and it is ok