This commit is contained in:
2026-01-16 00:57:05 +01:00
parent b2bc58b9d8
commit bb95e4382d
3 changed files with 7 additions and 0 deletions

View File

@@ -616,6 +616,11 @@
const setupRichTextEditor = (editor) => {
if (!editor || !editor.RichTextEditor) return;
const rte = editor.RichTextEditor;
const enableTextRte = B.RTE_TEXTFIELDS_ENABLED !== false;
if (!enableTextRte) {
log('RTE', 'Richtext fuer Textfelder deaktiviert (RTE bleibt geladen).', '#888');
return;
}
const icon = (path) => `<svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true"><path d="${path}" fill="currentColor"/></svg>`;
const resolveFontOptions = () => (B.RTE_FONTS && Array.isArray(B.RTE_FONTS) && B.RTE_FONTS.length)
? B.RTE_FONTS