From 3c48b2577825fe74e1dcf88a4da3f07797f01e9a Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Mon, 9 Feb 2026 00:29:58 +0100 Subject: [PATCH] Table --- config/current.ver | 2 +- public/assets/js/bridge/table-builder.js | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config/current.ver b/config/current.ver index 3b712a9..936048d 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.2.81 \ No newline at end of file +1.2.82 \ No newline at end of file diff --git a/public/assets/js/bridge/table-builder.js b/public/assets/js/bridge/table-builder.js index 3768121..a88f16e 100644 --- a/public/assets/js/bridge/table-builder.js +++ b/public/assets/js/bridge/table-builder.js @@ -222,6 +222,19 @@ } editor.on('component:selected', (model) => { + if (!model) return; + if (model.get && model.get('tagName') === 'tr') { + const parent = model.parent && model.parent(); + const table = parent && (parent.get && parent.get('tagName') === 'table' ? parent : parent.parent && parent.parent()); + if (isBridgeTableComponent(table)) { + const cells = model.components && model.components(); + const firstCell = cells && cells.length ? cells.at(0) : null; + if (firstCell) { + editor.select(firstCell); + return; + } + } + } if (isBridgeTableComponent(model)) { model.set && model.set({ selectable: true,