react-ace
react-ace copied to clipboard
cannot type Chinese correctly
When I type some Chinese letters(by using Sougou Input) into this amazing editor I encounter a trouble, like wo'men 我们 , "wo'men" is a tempory PINYIN word, which shouldn't be placed into the editor, plus, I have to type twice blank key then I can type Chinese letters . It's almost perfect except this one. Progress on: #
When I type some Chinese letters(by using Sougou Input) into this amazing editor I encounter a trouble, like wo'men 我们 , "wo'men" is a tempory PINYIN word, which shouldn't be placed into the editor, plus, I have to type twice blank key then I can type Chinese letters . It's almost perfect except this one. Progress on: #
Can confirm this. When Chinese characters is being typed, the newValue parameter becomes the pinyin of the Chinese characters only, regardless of what has been typed before. Did you solve this problem eventually?
Not yet, we use CodeMirror now. Thank you for your reply
Hello, Did you solve this problem eventually? I have the problems with Thai characters, it causes an offset of the cursor
not yet, seemingly not friendly for Asian characters,
@wenxiwu777 do you see the same issue on https://ace.c9.io/ ? not handling IME was an error in older version of ace, but it was solved recently.
@Neira1991 cursor offset is another bug caused by missing support for non-monospace fonts.
I use setTimeout when set editor.session.getUndoManager().hasUndo()
or editor.session.getUndoManager().hasRedo()
, it maybe can fix this.
but I get the same problem when I use diff as DiffEditor