codemirror / codemirror5

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

Sometimes lost input chars on contenteditable on Chrome with IME #3158

Open mizchi opened 9 years ago

mizchi commented 9 years ago

In this example, I tried to input (nyuuryoku: にゅうりょく -> 入力) but codemirror lost 'nyu'(にゅ, a term) input. It happens randomely after first composition event. (by Google Japanese IME)

I doubt polling events but Setting {pollInterval: 1000} nor modifying setTimeout in compositionend doesn't fix it.

Firefox works in this case.

adrianheine commented 6 years ago

This is a issue that's difficult if not impossible to solve with the fundamental approach currently taken by CodeMirror.

We are working on a rewrite (CodeMirror 6) that will address this issue, and we are currently raising money for this work: See the announcement for more information about the rewrite and a demo.

Note that CodeMirror 6 is by no means stable or usable in production, yet. It's highly unlikely that we pick up this issue for CodeMirror 5, though.

jackycute commented 3 years ago

I think I could not reproduce this in the current demo (5.59.4) on iOS (14.4) iPhone X.