Unicode text input is broken with CodeMirror 4.8 (needs upgrade)
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 256
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
Hi, While working on an Arabic-script translation for TryRuby (PR #222 – Persian),
I noticed that text input in the editor is unreliable for Unicode content.
TryRuby currently uses CodeMirror 4.8, which has known issues with Unicode/BiDi text handling. This can result in incorrect character order and cursor behavior (e.g. Persian text rendering in reverse).
This is not a CSS or direction issue, but a limitation of the old CodeMirror 4.x text insertion logic. This directly affects the usability of Arabic-script languages.
Suggestion: upgrade CodeMirror to a newer version (5.x or later).
Even a minor upgrade should significantly improve Unicode input handling.
Contributor guide
No contributing guide indexed for this repository
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
Inspect the TryRuby integration and dependency entry for CodeMirror 4.8, then reproduce the reported behavior with Persian or other Arabic-script input. Compare the current editor behavior after an upgrade and verify character order and cursor movement; done means Unicode text input works reliably without changing CSS or text direction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100