quill
quill copied to clipboard
When user enters a new line in iOS browser safari, can't break Vietnamese word.
Please describe the a concise description and fill out the details below. It will help others efficiently understand your request and get to an answer instead of repeated back and forth. Providing a minimal, complete and verifiable example will further increase your chances that someone can help.
Steps for Reproduction
- Visit https://quilljs.com
- Step Two Change keyboard to Vietnamese And focus to quill editor example
- Step Three Typing dd => press Return to enter the new line => press d
Expected behavior: Typing word in new line.
Actual behavior: Character stick with old line.
If i touch to new line after press enter i can typing normal like i expect. I don't know why please check it @jhchen .
Platforms: IOS Safari. (IOS 12,13,14)
Version: 1.3.7
Confirmed
Not only Vietnamese, but Chinese or Korean too
I too have this issue.
Also, the iOS word suggestions keep the text entered from the previous line as if its the same word.
For example:
a help me
iOS would suggest "a help me" even though lo is on a new line and should be considered a new word.
i got same happen to Enter or Backspace. :( it's there any temporary patch?
i got same happen to Enter or Backspace. :( it's there any temporary patch?
self answer, i was override module/keyboard. maybe it's not good solution but until now it works for me.
i was add skipPreventing: boolean | undefined
option at addBinding's second parameter
and it's conditionally true when user-agent is iOS and when you use that argument.
@GenesisSam Can you please write down more detailed code? Thanks in advance
@Hanho-Kim sorry i didn't realized someone mention me.
recently someone ask me about module/keyboard
, how looks like.
so i create gist. and share with it. :)
https://github.com/quilljs/quill/blob/develop/modules/keyboard.ts
currently Quill's develop branch are more updated now. my code was write back in 2 years ago. it means it is a lot of "LEGACY CODE"!
you should be care to use my code. i recommend you just read how i bypass iOS's composition problem. and apply to new keyboard module base module/keyboard.ts
also i use 2.0.0-dev.4
Quill.