Blur ausbau
This commit is contained in:
@@ -602,7 +602,6 @@ const refreshPlaceholderComponent = (component) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const ensureRtePlaceholderButton = (editor) => {
|
const ensureRtePlaceholderButton = (editor) => {
|
||||||
if (B.RTE_TEXTFIELDS_ENABLED === false) return;
|
|
||||||
const rte = editor && editor.RichTextEditor;
|
const rte = editor && editor.RichTextEditor;
|
||||||
if (!rte || rte.__bridgePlaceholderButton) return;
|
if (!rte || rte.__bridgePlaceholderButton) return;
|
||||||
|
|
||||||
|
|||||||
@@ -616,11 +616,6 @@
|
|||||||
const setupRichTextEditor = (editor) => {
|
const setupRichTextEditor = (editor) => {
|
||||||
if (!editor || !editor.RichTextEditor) return;
|
if (!editor || !editor.RichTextEditor) return;
|
||||||
const rte = editor.RichTextEditor;
|
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 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)
|
const resolveFontOptions = () => (B.RTE_FONTS && Array.isArray(B.RTE_FONTS) && B.RTE_FONTS.length)
|
||||||
? B.RTE_FONTS
|
? B.RTE_FONTS
|
||||||
@@ -745,6 +740,13 @@
|
|||||||
}
|
}
|
||||||
}, true);
|
}, 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) => {
|
const setupPlainTextPreserver = (editor) => {
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ if ($fontSources) {
|
|||||||
{ label: 'Verdana', value: 'Verdana, sans-serif' },
|
{ label: 'Verdana', value: 'Verdana, sans-serif' },
|
||||||
];
|
];
|
||||||
window.BridgeParts.RTE_FONT_FACE_CSS = window.BridgeParts.RTE_FONT_FACE_CSS || <?= json_encode($fontFaceCss) ?>;
|
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){} }
|
function logToParent(type, detail){ try{ parent.postMessage({source:'editor-core',type:type,detail:String(detail||'')},'*'); }catch(e){} }
|
||||||
window.addEventListener('error', function(e){
|
window.addEventListener('error', function(e){
|
||||||
|
|||||||
Reference in New Issue
Block a user