From b66d0c5d49e8afbcdf3558e0a0700f313ac3ce00 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Tue, 27 Jan 2026 01:19:16 +0100 Subject: [PATCH] asd --- config/current.ver | 2 +- public/editor/bridge-core.js | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/config/current.ver b/config/current.ver index 0437331..f662c7e 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.1.13 \ No newline at end of file +1.1.14 \ No newline at end of file diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index eced15d..a47a537 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -425,6 +425,30 @@ const setupBlurLogger = (editor) => { if (!editor || !editor.Canvas || !editor.Canvas.getBody) return; + const logComponentInput = (model, label) => { + try { + const selectedEl = model && model.view && model.view.el; + const viewOuter = selectedEl ? String(selectedEl.outerHTML || '') : ''; + const modelContent = model && model.get ? String(model.get('content') || '') : ''; + const editorHtml = editor && typeof editor.getHtml === 'function' ? String(editor.getHtml() || '') : ''; + console.warn(`[UI EDIT ${label}]`, { + modelType: model && model.get ? model.get('type') : undefined, + modelId: model && (model.getId ? model.getId() : model.get && model.get('id')), + modelContentLen: modelContent.length, + modelContent: modelContent.slice(0, 1000), + viewOuterLen: viewOuter.length, + viewOuter: viewOuter.slice(0, 1000), + editorHtmlLen: editorHtml.length, + editorHtml: editorHtml.slice(0, 1000), + }); + } catch {} + }; + if (!editor.__bridgeUiEditDebugBound) { + editor.__bridgeUiEditDebugBound = true; + editor.on('component:input', (model) => logComponentInput(model, 'INPUT')); + editor.on('component:update', (model) => logComponentInput(model, 'UPDATE')); + editor.on('component:deselected', (model) => logComponentInput(model, 'DESELECT')); + } editor.on('canvas:frame:load', () => { const body = editor.Canvas && editor.Canvas.getBody && editor.Canvas.getBody(); if (!body || body.__bridgeBlurLoggerBound) return;