diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index 3e8bcd2..16c51af 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -267,17 +267,21 @@ container: '#gjs', height: '100vh', noticeOnUnload: 0, -             -            // 🛑 KRITISCHE KORREKTUR: storageManager aktivieren und konfigurieren -            storageManager: storageConf, -             -            plugins: pluginsList,  -            pluginsOpts: {}, -            // 🛑 KRITISCHE ERGÄNZUNG: Verhindert das automatische Ausblenden leerer Kategorien -            blockManager: {  -                hideEmpty: false  -            } -        }); + + // 🛑 KRITISCHE KORREKTUR: storageManager aktivieren und konfigurieren + storageManager: storageConf, + + plugins: pluginsList, + pluginsOpts: {}, + // 🛑 KRITISCHE ERGÄNZUNG: Verhindert das automatische Ausblenden leerer Kategorien + blockManager: { + hideEmpty: false + }, + domComponents: { + // Preserve plain text when editing text blocks. + textTags: ['p','span','div','br','b','strong','i','em','u','a','ul','ol','li'] + } + });                  window.__gjs = ed;          diff --git a/public/editor/config.js b/public/editor/config.js index aecbbc3..ebaa065 100644 --- a/public/editor/config.js +++ b/public/editor/config.js @@ -60,6 +60,10 @@ { id: 'views', el: '.panel__views' }, ] }, + domComponents: { + // Ensure plain text is preserved when editing text blocks. + textTags: ['p','span','div','br','b','strong','i','em','u','a','ul','ol','li'] + }, // ... Fügen Sie hier weitere GrapesJS-Optionen ein (z.B. device buttons) };