Skip to content

Cannot Add Block Above Table When Table is First BlockΒ #2195

@yannishin

Description

@yannishin

Describe the bug
When a Table block is positioned as the first block in the document, there is no way to add a block above it.
Current behavior:

Can position cursor above the table using keyboard arrow keys
Pressing Enter while cursor is above the table does NOT create a new block
The plus button on the left side of the table only adds blocks below the table
No UI or keyboard method exists to add content above a table when it's the first block

Expected behavior:
When the cursor is positioned above the table (first block), pressing Enter should create a new paragraph block above the table.

To Reproduce
Create a new document
Insert a Table block as the first block
Use keyboard arrow keys (↑) to position cursor above the table
Press Enter key
Observe: No new block is created above the table
Try using the plus button (+) on the left side
Observe: Can only add blocks below the table, not above

Video demonstration:
https://github.com/user-attachments/assets/ed91bd29-44cc-4849-b583-d40282fa3b02

Online reproduction:
You can reproduce this on: https://stackblitz.com/github/TypeCellOS/BlockNote/tree/main/examples/01-basic/01-minimal

Add a table as the first block
Follow steps above

Misc

  • Node version:
  • Package manager:
  • Browser:
  • I'm a sponsor and would appreciate if you could look into this sooner than later πŸ’–

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions