From f39ad8449b596a843a3b695a1d5d7d914ac88bcc Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sun, 11 Jan 2026 22:12:28 +0100 Subject: [PATCH] asdsad --- public/editor/bridge-core.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index 7cc4659..9f40acc 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -277,6 +277,12 @@ blockManager: { hideEmpty: false }, + parser: { + textTags: ['p','span','div','br','b','strong','i','em','u','a','ul','ol','li'], + optionsHtml: { + keepEmptyTextNodes: true + } + }, domComponents: { // Preserve plain text when editing text blocks. textTags: ['p','span','div','br','b','strong','i','em','u','a','ul','ol','li'] @@ -297,6 +303,7 @@ parserCfg.textTags = textTags; parserCfg.optionsHtml = parserCfg.optionsHtml || {}; parserCfg.optionsHtml.textTags = textTags; + parserCfg.optionsHtml.keepEmptyTextNodes = true; } } catch (e) { log('CORE WARN', `textTags Konfiguration fehlgeschlagen: ${e.message}`, 'orange', 'warn');