TypeCellOS / TypeCellOS/BlockNote

Selection starting in nested block not always pasted correctly

Open
#1,117 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

This bug occurs in a scenario where the selection starts in a nested block, and ends at a block at a higher nesting level. Here's an example:

image

When copying and pasting this snippet, nothing actually gets pasted. The copied HTML from the clipboard looks ok, so this seems to be an issue with the paste logic.

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.

Research direction

Start by reproducing the nested-block selection described in the issue and compare the copied clipboard HTML with the result after pasting. Trace the paste logic for selections that begin in a nested block and end at a higher-level block; done means the selected content is pasted instead of producing no content.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.