Skip to content

[Bug]: Japanese IME input issue with multi-line selection in ProseMirror editor #1482

@honoka-anraku

Description

@honoka-anraku

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:

  1. Open the ProseMirror editor.
  2. Enter two lines of text:
    • First line: Katakana characters (e.g., "テスト")
    • Second line: One Hiragana character (e.g., "あ")
  3. Select both lines of text.
  4. Attempt to input the same Hiragana character as in the second line.
  5. Observe that the first line disappears, but the second line remains unchanged, and further Japanese input is impossible.

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)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions