quill icon indicating copy to clipboard operation
quill copied to clipboard

When user enters a new line in iOS browser safari, can't break Vietnamese word.

Open bboy114crew opened this issue 4 years ago • 7 comments

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

  1. Visit https://quilljs.com
  2. Step Two Change keyboard to Vietnamese And focus to quill editor example
  3. Step Three Typing dd => press Return to enter the new line => press d

Expected behavior: Typing word in new line.

image

Actual behavior: Character stick with old line.

image

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

bboy114crew avatar May 09 '20 02:05 bboy114crew

Confirmed

LVBK avatar May 09 '20 02:05 LVBK

Not only Vietnamese, but Chinese or Korean too

ntvinhit avatar May 09 '20 02:05 ntvinhit

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.

image

decisionnguyen avatar May 09 '20 02:05 decisionnguyen

i got same happen to Enter or Backspace. :( it's there any temporary patch?

GenesisSam avatar Jul 20 '20 00:07 GenesisSam

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 avatar Aug 07 '20 00:08 GenesisSam

@GenesisSam Can you please write down more detailed code? Thanks in advance

Hanho-Kim avatar Jun 27 '22 07:06 Hanho-Kim

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

GenesisSam avatar Feb 02 '23 01:02 GenesisSam