From 70127e61c243bd7a30ac5645b0ef83337af2106d Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Mon, 9 Feb 2026 00:10:26 +0100 Subject: [PATCH] Table --- config/current.ver | 2 +- .../bridge/blocks-custom/elements/table-2xn.js | 12 ++++++------ public/assets/js/bridge/table-builder.js | 16 ++++++++++++---- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/config/current.ver b/config/current.ver index 2833ec4..b09d96b 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.2.78 \ No newline at end of file +1.2.80 diff --git a/public/assets/js/bridge/blocks-custom/elements/table-2xn.js b/public/assets/js/bridge/blocks-custom/elements/table-2xn.js index 7818107..c02ffdf 100644 --- a/public/assets/js/bridge/blocks-custom/elements/table-2xn.js +++ b/public/assets/js/bridge/blocks-custom/elements/table-2xn.js @@ -6,16 +6,16 @@ content:` - - + + - - + + - - + +
Spalte ASpalte BSpalte ASpalte B
Zeile 1...Zeile 1...
Zeile 2...Zeile 2...
` diff --git a/public/assets/js/bridge/table-builder.js b/public/assets/js/bridge/table-builder.js index 8863947..d30ad83 100644 --- a/public/assets/js/bridge/table-builder.js +++ b/public/assets/js/bridge/table-builder.js @@ -43,23 +43,31 @@ const label = existingVal || (r === 0 ? `Spalte ${String.fromCharCode(65 + c)}` : `Zeile ${r} / ${c + 1}`); if (r === 0) { row.components.push({ + type: 'text', tagName: 'th', + editable: true, + selectable: true, + hoverable: true, + draggable: false, attributes: { style: headStyle, - 'data-gjs-selectable': 'false', 'data-gjs-draggable': 'false', }, - components: [{ type: 'textnode', content: label }], + content: label, }); } else { row.components.push({ + type: 'text', tagName: 'td', + editable: true, + selectable: true, + hoverable: true, + draggable: false, attributes: { style: cellStyle, - 'data-gjs-selectable': 'false', 'data-gjs-draggable': 'false', }, - components: [{ type: 'textnode', content: label }], + content: label, }); } }