Invalid selection provided by `getSelectionCutBlocks` in tables

Aperta
#1,922 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug:P3 sponsor

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 💖
Lingua principale
TypeScript
Stelle
10.2k
Fork
772
Merge medio
3g 11h
PR unite (30g)
17

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TypeCellOS/BlockNote

Tutte le issue di TypeCellOS/BlockNote

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.