ritzyed / ritzy

Collaborative web-based rich text editor
http://ritzyed.github.io/ritzy/
Apache License 2.0
902 stars 52 forks source link

IME input is not correct (too many insertions into the editor) #18

Open rocketraman opened 9 years ago

rocketraman commented 9 years ago

(Reported by user @Yixi)

When typing IME input e.g. "zhongwen" with Chinese Pinyin IME, the input into the editor is incorrect. IME input "zhongwen" should output "中文" in the editor.

rocketraman commented 9 years ago

Ritzy uses React synthetic events as its input system, and React does not correctly deal with IME input. The onChange event for the input is firing before the IME input is complete. See https://github.com/facebook/react/issues/3926.