CJK x Windows x Chromium Browser character duplicating / removing onClick #1551
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hey All 👋
Writing to surface a bug that has recently surfaced and we're finding on Confluence Editor as well as a sandbox editor. This could be related to https://github.com/ProseMirror/prosemirror/issues/1484.
What is the issue?
While typing IME composing (input CJK characters), there is a duplication or deletion of the character. After deducing all the prosemirror step and transaction fired with the error stack, it maybe related to the function
readDOMChange.Steps to reproduce
Actual behavior
Although the deletion is hard to replicate on sandbox, it seems as though it's more apparent on a sandbox Confluence Editor. After the trace stack we found that it is on
readDOMChangehad a replace step that seemingly deletes the character.https://github.com/user-attachments/assets/70db8313-3c44-4426-b3c5-0e1f173e2a78
https://github.com/user-attachments/assets/b36715cf-04e4-4e03-b35f-d92ef010db21
Environment
"prosemirror-commands": "1.7.1",
"prosemirror-example-setup": "1.2.3",
"prosemirror-keymap": "1.2.3",
"prosemirror-schema-basic": "1.2.4",
"prosemirror-tables": "1.1.1",
"prosemirror-view": "1.41.3"
Any help would be appreciated :D Thank you !
I don't see this happening when I type Korean or Chinese into the bottom of your demo. Which precise IME are you using, and which characters do you type to produce this effect? Does it also occur in the demo on prosemirror.net, or does some aspect of your setup trigger it? If so, have you isolated which aspect? Are there any browser addons active that might affect this?
Heya @marijnh 👋 Thanks for the reply !
It's actually occasional, and also you need to click once you type while its in composition stage
Just the default windows one, and any composition language will do the trick, no specific character
Not that I can try !
I don't think so. My set up was built from scratch, feels very vanilla prosemirror. Esp the sandbox version.
Nope it was a fresh windows 11 !
Still no luck. But note that "Click anywhere on the line. Observe. Expected not to duplicate/delete" doesn't exactly tell me what to do, so I may be doing something different from you.
Also, what is the purpose of this
autoInsertZeroSpaceextension, which, if this doesn't occur on the website demo, is highly likely to be the cause of this problem?Happy new year ! Sorry for the delay in reply ! And thank you for replying
Hmmm I think more accurately, please click on the line of the character where it was typed ! Right on the cursor :)
Still no luck. Please tell me the exact keyboard style you are using, what keys you're pressing in what order, including mouse clicks, and what the expected output string is (note that, not knowing Hangul, I can't evaluate the results of my typing very well).
Also, is the presence of the table necessary to reproduce this issue?