uiwjs / uiwjs/react-codemirror

Able to highlight/select lines of code OUTSIDE of the code editor.

Open
#460 1 comment 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

Even in the demo, you are able to select or highlight lines of code if selecting and dragging vertically from the right of the code editor. This largely seems like an unexpected behavior. Is there a way to prevent any selection of the code if the cursor is outside of the editor itself?

https://user-images.githubusercontent.com/3052871/221147703-1a84d94a-2e34-4d98-a422-7eeb4460b212.mov

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

Reproduce the selection behavior shown in the linked demo by dragging vertically outside the code editor. Start from the editor integration entry point and trace how pointer selection is handled. Done means dragging from outside the editor no longer selects or highlights code.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.