[PR #2120] Table Plugin #13521

Closed
opened 2026-03-24 21:46:43 +00:00 by mirror · 0 comments
Owner

Original Pull Request: https://github.com/AppFlowy-IO/AppFlowy/pull/2120

State: closed
Merged: No


  • New Node types 'table' and 'table/cell'. The 'table/cell' node for now contains single TextNode. All the data is kept in node attributes. Data related to 'table' like number of rows and columns are in 'table' node attributes and data related to each table cell is in 'table/cell' node attribute (cell height, position of cell its row and column). The TextNode in table cell supports selection menu and toolbar but not all of them work inside the table cell (some of them are not applicable in table cell).
  • Added isApplicable to ContextMenuItem so we can have context-base context menu
  • Modified backspaceEventHandler so it won't move from one table cell to another cell and also handling backspace when the selection includes part of table cells and none table related nodes.
  • Modified _getNodeInOffset so selection also works when we have multiple nodes in a single line (same y position). I will add more info on this in another comment.
**Original Pull Request:** https://github.com/AppFlowy-IO/AppFlowy/pull/2120 **State:** closed **Merged:** No --- - New `Node` types 'table' and 'table/cell'. The 'table/cell' node for now contains single `TextNode`. All the data is kept in node attributes. Data related to 'table' like number of rows and columns are in 'table' node attributes and data related to each table cell is in 'table/cell' node attribute (cell height, position of cell its row and column). The `TextNode` in table cell supports selection menu and toolbar but not all of them work inside the table cell (some of them are not applicable in table cell). - Added `isApplicable` to `ContextMenuItem` so we can have context-base context menu - Modified `backspaceEventHandler` so it won't move from one table cell to another cell and also handling backspace when the selection includes part of table cells and none table related nodes. - Modified `_getNodeInOffset` so selection also works when we have multiple nodes in a single line (same y position). I will add more info on this in another comment.
mirror 2026-03-24 21:46:43 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
AppFlowy-IO/AppFlowy#13521
No description provided.