Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cope with IME #213

Closed
u9520107 opened this issue Sep 16, 2014 · 1 comment · Fixed by #254
Closed

Cope with IME #213

u9520107 opened this issue Sep 16, 2014 · 1 comment · Fixed by #254

Comments

@u9520107
Copy link

Has anyone tested quilljs on languages that require text selection? (i.e. Chinese, Japanese...)
Currently the editor seems to eat away the unfinished input making it virtually impossible to type in those langauges if styling is being applied.

Edit: Ok.. not happend all the time. But when new format is chosen, so a new span/b/p would be created on the next keyboard input, the action takes the not-yet-finished input and create the new element. This interrupts the input process and basically forbid people to finish what they are typing. For example, suppose it takes 3 phonetic alphabets to finish 1 chinese letter, the input will put the phonetic alphabets into the field before you finish the process. Quills takes the first phonetic alphabet input and create new element to use the new styling, which breaks the input process.

@fancyoung
Copy link
Contributor

I have the same problem. It works fine in v0.18.1, and the bug shown in v0.19.0

It caused by the Selection.prototype._setNativeRange.
Line nativeRange = this._getNativeRange();(see code, in this commit) was removed in v0.19.0, when I add this line, it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants