react-ace icon indicating copy to clipboard operation
react-ace copied to clipboard

cannot type Chinese correctly

Open wenxiwu777 opened this issue 6 years ago • 6 comments

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: #

wenxiwu777 avatar Jul 10 '18 09:07 wenxiwu777

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?

jktzes avatar Mar 12 '19 13:03 jktzes

Not yet, we use CodeMirror now. Thank you for your reply

wenxiwu777 avatar Mar 12 '19 15:03 wenxiwu777

Hello, Did you solve this problem eventually? I have the problems with Thai characters, it causes an offset of the cursor

Neira1991 avatar Jun 30 '20 14:06 Neira1991

not yet, seemingly not friendly for Asian characters,

wenxiwu777 avatar Aug 10 '20 11:08 wenxiwu777

@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.

nightwing avatar Aug 10 '20 14:08 nightwing

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

wolfjobs avatar Apr 22 '22 03:04 wolfjobs