From acfdaf0cc03a975555133a9f1fd67f6ac7bc97e0 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Tue, 27 Jan 2026 01:56:20 +0100 Subject: [PATCH] asdasd --- config/current.ver | 2 +- public/editor/bridge-core.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/current.ver b/config/current.ver index 95ce23d..b0c8928 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.1.17 \ No newline at end of file +1.1.18 \ No newline at end of file diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index 0f11ecd..e64f42d 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -438,7 +438,8 @@ try { // Force-sync direct edits from view -> model before logging. const viewEl = model && model.view && model.view.el ? model.view.el : null; - if (model && model.get && viewEl && !model.__bridgeUiSyncing) { + const modelType = model && model.get ? model.get('type') : undefined; + if (modelType === 'text' && model && model.get && viewEl && !model.__bridgeUiSyncing) { const viewHtml = String(viewEl.innerHTML || '').trim(); const modelHtml = String(model.get('content') || '').trim(); if (viewHtml && viewHtml !== modelHtml) { @@ -452,7 +453,7 @@ 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, + modelType, modelId: model && (model.getId ? model.getId() : model.get && model.get('id')), modelContentLen: modelContent.length, modelContent: modelContent.slice(0, 1000),