TypeCellOS / TypeCellOS/BlockNote

Invalid selection provided by `getSelectionCutBlocks` in tables

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

Nobody has claimed this yet.

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

Description

Describe the bug
Selecting multiple cells from a table will make editor.getSelectionCutBlocks() return an incomplete object:

Here the whole table is selected:

Image

Here is an extract of the object returned by editor.getSelectionCutBlocks() after selecting:

Image

To Reproduce

  1. Select multiple table cells
  2. Call editor.getSelectionCutBlocks()

Misc

  • Node version: N/A
  • Package manager: PNPM 10.14.0
  • Browser: Firefox 141.0.2 (Flatpak)
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

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

Reproduce the issue by selecting multiple cells in a table and calling editor.getSelectionCutBlocks(). Trace the selection handling for tables and compare the returned object with the selected cells; done means the result contains the complete table selection rather than an incomplete object.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.