uiwjs / uiwjs/react-codemirror

select some word and enter chinese, it will error

Open
#551 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
161
PR merge metrics
No merged PRs in 30d

Description

https://codesandbox.io/s/happy-dew-qw53pj?file=/package.json

the basic codemirror 4.21.9
when I select multiline word (not all) and entry Chinese word;

sometimes it will error like“ Position 406 is out of range for changeset of length 397"

Contributor guide

No contributing guide indexed for this repository

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 by opening the linked CodeSandbox and its package.json to reproduce the multiline selection and Chinese input case with basic CodeMirror 4.21.9. Trace the React integration around the selection and input change handling; done means the scenario no longer raises the out-of-range changeset error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.