From a9be33217d9db76808f72aad3c31802445ccb976 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Fri, 16 Jan 2026 22:59:59 +0100 Subject: [PATCH] asasd --- public/assets/js/bridge/rte-editor.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/assets/js/bridge/rte-editor.js b/public/assets/js/bridge/rte-editor.js index 68553c7..c2d07ef 100644 --- a/public/assets/js/bridge/rte-editor.js +++ b/public/assets/js/bridge/rte-editor.js @@ -315,6 +315,13 @@ saveBtn.addEventListener('click', () => { const rawHtml = content.innerHTML || ''; let html = normalizeRteHtml(rawHtml); + try { + console.warn('[RTE SAVE DEBUG]', { + rawHtml, + normalizedHtml: html, + textContent: String(content.textContent || '').trim() + }); + } catch {} const isTextLike = component && component.is && (component.is('text') || component.is('button') || component.is('link')); try { if (!isTextLike && component.components) { @@ -332,6 +339,7 @@ editor.trigger('component:update', component); } } catch {} + try { editor.__bridgeRteAllowClose = true; } catch {} closeModal(); });