dsfsfds
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user