From 68e744788d073f9a54731104cf2d3eec5d991251 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sun, 11 Jan 2026 23:09:13 +0100 Subject: [PATCH] ssadsa --- public/editor/bridge-core.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index a0a15bd..d9bf314 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -340,25 +340,11 @@ return type === 'text' || type === 'link' || type === 'button'; }; - const modelHasContent = (cmp) => { - if (!cmp) return false; - if (typeof cmp.components === 'function') { - const comps = cmp.components(); - if (comps && comps.length) return true; - } - if (typeof cmp.get === 'function') { - const content = cmp.get('content'); - if (typeof content === 'string' && content !== '') return true; - } - return false; - }; - const fixPlainTextContent = (cmp) => { if (!cmp || !cmp.view || !cmp.view.el) return; if (!isTextLike(cmp)) return; const el = cmp.view.el; if (!hasPlainTextNodes(el)) return; - if (modelHasContent(cmp)) return; const comps = buildTextnodeComponents(el); if (!comps.length) return; try {