From 899a15afafae41bff16b3615475ded7e40ab9a21 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 2 Jun 2024 15:39:37 -0400 Subject: [PATCH] fix: Shift+click on table grip does not select rows/columns in between --- shared/editor/nodes/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shared/editor/nodes/index.ts b/shared/editor/nodes/index.ts index 2dedceda1..88d771e3d 100644 --- a/shared/editor/nodes/index.ts +++ b/shared/editor/nodes/index.ts @@ -77,7 +77,14 @@ export const listExtensions: Nodes = [ ListItem, ]; -export const tableExtensions: Nodes = [Table, TableCell, TableHeader, TableRow]; +export const tableExtensions: Nodes = [ + TableCell, + TableHeader, + TableRow, + // Note: Table nodes comes last to ensure the table selection plugin is registered after the + // plugins for table grips in TableCell and TableHeader. + Table, +]; /** * The full set of nodes that are used in the editor. This is used for rich