[Bug]: First Character Not Recognized as Chinese in ui.TextEditor.edit
Nobody has claimed this yet.
- 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
-
Open the demo link: Demo
-
Double-click on "Edit me".
-
Switch to Chinese input method, select the text, and start typing in Chinese.
-
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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