TypeCellOS / TypeCellOS/BlockNote
Selection starting in nested block not always pasted correctly
Nobody has claimed this yet.
- 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:
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
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
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