This commit is contained in:
2026-01-11 03:26:47 +01:00
parent da539b6ce1
commit 5bf06f75d6
2 changed files with 46 additions and 26 deletions

View File

@@ -282,6 +282,25 @@
textTags: ['p','span','div','br','b','strong','i','em','u','a','ul','ol','li']
}
});
try {
const textTags = ['p','span','div','br','b','strong','i','em','u','a','ul','ol','li'];
if (ed.Config) {
ed.Config.domComponents = ed.Config.domComponents || {};
ed.Config.domComponents.textTags = textTags;
}
if (ed.DomComponents && ed.DomComponents.getConfig) {
ed.DomComponents.getConfig().textTags = textTags;
}
if (ed.Parser && ed.Parser.getConfig) {
const parserCfg = ed.Parser.getConfig();
parserCfg.textTags = textTags;
parserCfg.optionsHtml = parserCfg.optionsHtml || {};
parserCfg.optionsHtml.textTags = textTags;
}
} catch (e) {
log('CORE WARN', `textTags Konfiguration fehlgeschlagen: ${e.message}`, 'orange', 'warn');
}
        
        window.__gjs = ed;