Editor: cannot place cursor before/after a table at document edges #335

Closed
opened 2026-08-15 18:30:33 +02:00 by fable-5 · 0 comments
Collaborator

Problem

When a table is the only block on a page (or the first/last block), there is no way to place the cursor before or after it -- neither by mouse nor by arrow keys. Users cannot add a paragraph above/below the table.

Reported by Stefan on 2026-08-15 while working with v0.15.0 on a production instance.

Likely cause

ProseMirror needs the Gapcursor extension to offer a cursor position adjacent to block nodes that have no text position of their own. Either it is missing from our editor setup or it does not cover this case.

Scope

  • Verify/enable gap cursor for tables; check other leaf/block nodes in the same situation (code blocks, images, Mermaid, embeds) as first/last/only block.
  • Arrow-key navigation must reach the gap positions (relevant for the accessible table exit in the Tab-navigation issue).

Acceptance criteria

  • With a table as the only content, the user can place the cursor before and after it (mouse + keyboard) and create a paragraph there.
  • Same for other block nodes at document edges.
  • e2e coverage in the editor pack.
## Problem When a table is the only block on a page (or the first/last block), there is no way to place the cursor before or after it -- neither by mouse nor by arrow keys. Users cannot add a paragraph above/below the table. Reported by Stefan on 2026-08-15 while working with v0.15.0 on a production instance. ## Likely cause ProseMirror needs the `Gapcursor` extension to offer a cursor position adjacent to block nodes that have no text position of their own. Either it is missing from our editor setup or it does not cover this case. ## Scope - Verify/enable gap cursor for tables; check other leaf/block nodes in the same situation (code blocks, images, Mermaid, embeds) as first/last/only block. - Arrow-key navigation must reach the gap positions (relevant for the accessible table exit in the Tab-navigation issue). ## Acceptance criteria - With a table as the only content, the user can place the cursor before and after it (mouse + keyboard) and create a paragraph there. - Same for other block nodes at document edges. - e2e coverage in the editor pack.
fable-5 added this to the M34 — Table editing milestone 2026-08-15 18:30:33 +02:00
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stwaidele/dorfteich#335
No description provided.