You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description
When selecting multiple lines of text in the ProseMirror editor and attempting to input Japanese characters using IME, the following issues occur:
Japanese input becomes impossible.
Only the first line of the selected text is deleted, while the second and subsequent lines remain unchanged.
Steps to Reproduce:
Open the ProseMirror editor.
Enter two lines of text:
First line: Katakana characters (e.g., "テスト")
Second line: One Hiragana character (e.g., "あ")
Select both lines of text.
Attempt to input the same Hiragana character as in the second line.
Observe that the first line disappears, but the second line remains unchanged, and further Japanese input is impossible.
Expected Behavior
When selecting multiple lines and inputting Japanese characters, all selected text should be replaced with the new input, and Japanese input should continue to function normally.
Additional Context (Optional)
This issue does not occur if all lines contain only Katakana or Hiragana.
The issue does not occur if the editor loses focus and regains it after the initial text input.
This bug appears to be ProseMirror-specific, as it can be reproduced in other online ProseMirror demos.
The text was updated successfully, but these errors were encountered:
marijnh
added a commit
to ProseMirror/prosemirror-view
that referenced
this issue
Aug 19, 2024
…election
FIX: When the browser starts a composition and the selection spans across blocks,
start by clearing it to make sure the composed text node lands in a valid position.
Issue ProseMirror/prosemirror#1482
It seems the browser deletes all paragraph nodes and starts composing in a naked text node at the top level of the editor in this situation. That confused ProseMirror's composition handling. Could you see if attached patch helps for you?
Bug Description
When selecting multiple lines of text in the ProseMirror editor and attempting to input Japanese characters using IME, the following issues occur:
Steps to Reproduce:
Browser Used
Chrome
Code Example URL
https://prosemirror.net/examples/basic/
Expected Behavior
When selecting multiple lines and inputting Japanese characters, all selected text should be replaced with the new input, and Japanese input should continue to function normally.
Additional Context (Optional)
The text was updated successfully, but these errors were encountered: