Blur ausbau

This commit is contained in:
2026-01-16 01:01:40 +01:00
parent bb95e4382d
commit ac7dd71a65
3 changed files with 7 additions and 7 deletions

View File

@@ -616,11 +616,6 @@
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
@@ -745,6 +740,13 @@
}
}, true);
});
editor.on('rte:disable', (model) => {
const target = model || (editor.getSelected && editor.getSelected());
if (!isTextLike(target)) return;
const content = target && target.get ? target.get('content') : '';
const msg = String(content || '').trim() ? 'Content vorhanden' : 'Content leer';
log('RTE BLUR', `rte:disable fuer Text-Komponente: ${msg}`, '#888');
});
};
const setupPlainTextPreserver = (editor) => {

View File

@@ -65,7 +65,6 @@ if ($fontSources) {
{ label: 'Verdana', value: 'Verdana, sans-serif' },
];
window.BridgeParts.RTE_FONT_FACE_CSS = window.BridgeParts.RTE_FONT_FACE_CSS || <?= json_encode($fontFaceCss) ?>;
window.BridgeParts.RTE_TEXTFIELDS_ENABLED = window.BridgeParts.RTE_TEXTFIELDS_ENABLED ?? false;
function logToParent(type, detail){ try{ parent.postMessage({source:'editor-core',type:type,detail:String(detail||'')},'*'); }catch(e){} }
window.addEventListener('error', function(e){