quill icon indicating copy to clipboard operation
quill copied to clipboard

Input Chinese character after EmbedBlot, cursor positioning error

Open ahauzq opened this issue 1 year ago • 4 comments
trafficstars

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://codepen.io/ahauzq/pen/dyEYadv
  2. click after "text" block
  3. switch to chinese IME
  4. input some Chinese

Expected behavior: The cursor appears after the input text

Actual behavior: The cursor appears after the EmbedBlot, and before the input text

Platforms: browser: chrome 124.0.6367.207 os: macOS 14.4.1

Include browser, operating system and respective versions

Version: 2.0.2

https://github.com/quilljs/quill/assets/30280271/41285855-d72a-4050-8bc5-0781ab58d36f

ahauzq avatar May 17 '24 08:05 ahauzq

https://github.com/quilljs/quill/issues/2970

ahauzq avatar May 17 '24 08:05 ahauzq

https://github.com/quilljs/quill/pull/2973/commits/e56603e52f7f3f8fe7295fba1020ca226ef9a5e0

ahauzq avatar May 17 '24 08:05 ahauzq

This issue has not been fixed yet. @ahauzq

jimmygan avatar May 19 '24 07:05 jimmygan

When there are consecutive EmbedBlots, the cursor is also incorrect when deleting them. e.g. @a@b@c

jimmygan avatar May 20 '24 01:05 jimmygan

This bug occurs for me on Quill 2.0.3 with Korean characters entered via the IME.

pmachapman avatar Jan 20 '25 01:01 pmachapman