quill
quill copied to clipboard
Input Chinese character after EmbedBlot, cursor positioning error
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://codepen.io/ahauzq/pen/dyEYadv
- click after "text" block
- switch to chinese IME
- 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
https://github.com/quilljs/quill/issues/2970
https://github.com/quilljs/quill/pull/2973/commits/e56603e52f7f3f8fe7295fba1020ca226ef9a5e0
This issue has not been fixed yet. @ahauzq
When there are consecutive EmbedBlots, the cursor is also incorrect when deleting them. e.g. @a@b@c
This bug occurs for me on Quill 2.0.3 with Korean characters entered via the IME.