Enter Key Breaks Children in Custom Toggleable Blocks

Aperta
#2,020 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@matthewlipski ci sta già lavorando.

Dal 30/9/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug:P2

Describe the bug
When pressing Enter inside a custom toggleable block, the children are broken unexpectedly.

  • If the cursor is on the toggle title, all children should be preserved, but they are not.
  • If the cursor is inside the children, pressing Enter should move the cursor to the next child (if it exists) or create a new default block.

To Reproduce

  1. Open the example: https://www.blocknotejs.org/examples/custom-schema/toggleable-blocks
  2. Place the cursor in the toggle title and press Enter.
  3. Observe that the children are broken.

Misc

  • Node version: 22.13.0
  • Package manager: npm
  • Browser: Firefox
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

https://github.com/user-attachments/assets/eb85ca78-7b74-497d-944e-27017ba6f675

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.