sfsf
This commit is contained in:
@@ -474,6 +474,20 @@
|
||||
|
||||
// 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(content);
|
||||
content.addEventListener('keyup', saveSelection);
|
||||
|
||||
Reference in New Issue
Block a user