clientIO / clientIO/joint

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

Open
#2,943 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
5.4k
Forks
893
Avg merge
3d 3h
Merged PRs (30d)
26

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked CodeSandbox demo and reproduce the issue through ui.TextEditor.edit inside the element:pointerdblclick flow. Compare the first character entered with Chinese input enabled against later characters; done means the initial typed character is recognized as Chinese rather than inserted as an English letter.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.