Skip to content

[Bug]: First Character Not Recognized as Chinese in ui.TextEditor.edit #2943

@hechengxixi

Description

@hechengxixi

Current versus expected behaviour

When creating a rich text box using ui.TextEditor.edit inside the paper's 'element:pointerdblclick' event, the selected text is being highlighted, but when switching to Chinese input method and typing, the first letter typed is treated as an English character and is inserted into the text box. I expect the first letter to be recognized as Chinese input.

Steps to reproduce

  1. Open the demo link: Demo

  2. Double-click on "Edit me".

  3. Switch to Chinese input method, select the text, and start typing in Chinese.

  4. Follow the above steps, and the first character typed will be inserted as an English letter in the input box.

Version

4.1.1

What browsers are you seeing the problem on?

No response

What operating system are you seeing the problem on?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions