TypeCellOS / TypeCellOS/BlockNote
Invalid selection provided by `getSelectionCutBlocks` in tables
Open
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:
Here is an extract of the object returned by editor.getSelectionCutBlocks() after selecting:
To Reproduce
- Select multiple table cells
- 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
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
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