editor.getSelectedText() - Missing whitespace between selected text segments crossing blocks boundaries

Open
#710 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by locating the editor.getSelectedText() implementation and reproduce the issue with two paragraph blocks whose text is selected across the block boundary. Verify that the returned array preserves the selected text segments and includes the expected whitespace between them.

Written by the indexing model from the issue text.

Description

bug:P3

Describe the bug
Selected text across blocks is truncated without spaces when the selection is across blocks

To Reproduce
Write 2 Paragraph blocks - select their text and see the resulting text from editor.getSelectedText()

The function should return an array of selected text segments by blocks.

Dominant language
TypeScript
Stars
10.2k
Forks
772
Avg merge
3d 11h
Merged PRs (30d)
17

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.

More from TypeCellOS/BlockNote

All issues in TypeCellOS/BlockNote

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.