This commit is contained in:
2026-01-19 23:35:43 +01:00
parent 081b7f3d50
commit 88ef310604

View File

@@ -474,6 +474,20 @@
// Emoji-Picker entfernt (auf Wunsch) kann spaeter als echter Picker wiederkommen. // Emoji-Picker entfernt (auf Wunsch) kann spaeter als echter Picker wiederkommen.
const injectedStyle = doc.createElement('style');
injectedStyle.setAttribute('data-bridge-rte-style', '1');
const fontCss = (B && typeof B.RTE_FONT_FACE_CSS === 'string' && B.RTE_FONT_FACE_CSS.trim())
? B.RTE_FONT_FACE_CSS.trim()
: '';
let editorCss = '';
try {
editorCss = editor && typeof editor.getCss === 'function' ? String(editor.getCss() || '') : '';
} catch {}
injectedStyle.textContent = `${fontCss}\n${editorCss}`.trim();
if (injectedStyle.textContent) {
container.appendChild(injectedStyle);
}
container.appendChild(toolbar); container.appendChild(toolbar);
container.appendChild(content); container.appendChild(content);
content.addEventListener('keyup', saveSelection); content.addEventListener('keyup', saveSelection);