From e0ec98fcb806d1c445b56f1a59e88537f3fb3413 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Thu, 15 Jan 2026 02:13:52 +0100 Subject: [PATCH] asdasd --- public/assets/js/bridge/blocks-custom.js | 26 ++++++++++++++-------- public/assets/js/bridge/blocks-standard.js | 24 +++++++------------- public/editor/bridge-core.js | 16 +++++++++++++ 3 files changed, 41 insertions(+), 25 deletions(-) diff --git a/public/assets/js/bridge/blocks-custom.js b/public/assets/js/bridge/blocks-custom.js index 111278b..0f260b3 100644 --- a/public/assets/js/bridge/blocks-custom.js +++ b/public/assets/js/bridge/blocks-custom.js @@ -74,6 +74,23 @@ content:`
Call To Action
` }); + // TABLE + addOnce(bm, 'cust-table', { id:'cust-table', label:'🧩 Tabelle (2xN)', + content:` + + + + + + + + + + + + +
Spalte ASpalte B
Zeile 1...
Zeile 2...
` }); + // DIVIDER addOnce(bm, 'cust-divider',{ id:'cust-divider',label:'⎯ Divider', content:`
` }); @@ -82,15 +99,6 @@ addOnce(bm, 'cust-spacer', { id:'cust-spacer', label:'↕ Spacer', content:`
` }); - // 2 COL - addOnce(bm, 'cust-2col', { id:'cust-2col', label:'🧩 2 Spalten', - content:` -
-

Linke Spalte – Inhalt hier.

-
-

Rechte Spalte – Inhalt hier.

-
` }); - // MEDIA LEFT addOnce(bm, 'cust-media-left', { id:'cust-media-left', label:'🖼️◀ Text', content:` diff --git a/public/assets/js/bridge/blocks-standard.js b/public/assets/js/bridge/blocks-standard.js index cd7a4bd..2a11e8a 100644 --- a/public/assets/js/bridge/blocks-standard.js +++ b/public/assets/js/bridge/blocks-standard.js @@ -108,22 +108,14 @@ addOrUpdate(bm, 'std-button', { label:'Button (Basis)', content:`Button` }); - // TABLE (Registriert als 'std-table') - addOrUpdate(bm, 'std-table', { label:'Tabelle (2xN)', - content:`
- - - - - - - - - - - - -
Spalte ASpalte B
Zeile 1...
Zeile 2...
` }); + // 2 COL (Bibliothek) + addOrUpdate(bm, 'std-2col', { label:'2 Spalten', + content:` +
+

Linke Spalte – Inhalt hier.

+
+

Rechte Spalte – Inhalt hier.

+
` }); // DIVIDER (Registriert als 'std-divider') addOrUpdate(bm, 'std-divider',{ label:'Trenner (Basis)', diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index 17c1cb3..e8000b6 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -325,6 +325,7 @@ if (editor.__bridgeRteModalOpen) return; editor.__bridgeRteModalOpen = true; editor.__bridgeRteAllowClose = false; + let reopenGuard = false; if (!modal.__bridgeCloseLocked) { modal.__bridgeCloseLocked = true; @@ -550,6 +551,21 @@ editor.__bridgeRteAllowClose = false; }); } + const mdl = modal.getModel && modal.getModel(); + if (mdl && typeof mdl.on === 'function') { + const handler = () => { + if (editor.__bridgeRteAllowClose) { + mdl.off && mdl.off('change:open', handler); + return; + } + if (!mdl.get('open') && !reopenGuard) { + reopenGuard = true; + mdl.set('open', true); + setTimeout(() => { reopenGuard = false; }, 0); + } + }; + mdl.on('change:open', handler); + } try { modal.open({ closeOnEsc: false, closeOnClick: false }); } catch {