From 87c297823f233fa8593a848ed3b30bfa9f944e93 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sat, 17 Jan 2026 03:02:51 +0100 Subject: [PATCH] adasd --- public/assets/js/bridge/rte-editor.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/public/assets/js/bridge/rte-editor.js b/public/assets/js/bridge/rte-editor.js index d302cee..944d1aa 100644 --- a/public/assets/js/bridge/rte-editor.js +++ b/public/assets/js/bridge/rte-editor.js @@ -318,7 +318,24 @@ { label: 'Trebuchet MS', value: 'Trebuchet MS, sans-serif' }, { label: 'Verdana', value: 'Verdana, sans-serif' }, ]; - addSelect([{ label: 'Schriftart', value: '' }, ...fontOptions], 'Schriftart', (value) => applyInlineStyle('fontFamily', value)); + const applyComponentStyle = (styleObj) => { + try { + if (component && component.set) { + const current = component.get && component.get('style') ? { ...component.get('style') } : {}; + component.set('style', { ...current, ...styleObj }); + } + if (component && component.view && component.view.el) { + Object.entries(styleObj).forEach(([key, val]) => { + component.view.el.style[key] = val; + }); + } + } catch {} + }; + + addSelect([{ label: 'Schriftart', value: '' }, ...fontOptions], 'Schriftart', (value) => { + if (!value) return; + applyComponentStyle({ fontFamily: value }); + }); addSelect([ { label: 'Groesse', value: '' }, { label: '10px', value: '10' },