bustle / mobiledoc-kit

A toolkit for building WYSIWYG editors with Mobiledoc
https://bustle.github.io/mobiledoc-kit/demo/
MIT License
1.55k stars 151 forks source link

The input method doesn't work on iOS #583

Open ITJesse opened 7 years ago

ITJesse commented 7 years ago

The input method does not show the candidate box at all, so I can not enter Chinese and Japanese.

​Expected behavior: de951880-077b-48f0-8f80-10ae0e9d2ca5 4c1e6fdb-8388-45f4-a462-31d261d4e14c

It works prefectly in the title box, but was broken in the content box: 2d1a93bd-95a1-4e02-8bad-e69ba76cef39

It just types the letter into the box without a candidate box.

Step to reproduce:

  1. Use your iOS device to open the admin panel.
  2. Start to write a new story.
  3. Use any input method which needs a candidate box.

https://github.com/TryGhost/Ghost/issues/9017

ITJesse commented 7 years ago

068cd657-4829-4453-8237-e841107940f3

YoranBrondsema commented 7 years ago

@ITJesse This seems to be in Ghost, right? Can you reproduce the same bug on the mobiledoc-kit demo (https://bustle.github.io/mobiledoc-kit/demo/)? If so, we know that the bug is in mobiledoc-kit itself. If not, it will be in the integration of mobiledoc-kit in Ghost.

ITJesse commented 7 years ago

Yes, I can reproduce it. ccc63eba-ceab-4b9a-97af-0de9b49e00ed

ITJesse commented 7 years ago

I did some testing, and found that the keypress event was not triggered when I press keys with input method on.

Maybe using this event to deal with these input method is not a good idea.

kevinansfield commented 7 years ago

It's worth noting Ghost is not using mobiledoc-kit at this time, the Ghost examples provided above are using CodeMirror.