diff --git a/ts/editor/rich-text-input/RichTextStyles.svelte b/ts/editor/rich-text-input/RichTextStyles.svelte index 0d5090444..0f1990842 100644 --- a/ts/editor/rich-text-input/RichTextStyles.svelte +++ b/ts/editor/rich-text-input/RichTextStyles.svelte @@ -29,6 +29,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html async function setStyling(property: string, value: unknown): Promise { const rule = await userBaseRule; rule.style[property] = value; + + // if we don't set the textContent of the underlying HTMLStyleElement, addons + // which extend the custom style and set textContent of their registered tags + // will cause the userBase style tag here to be ignored + const baseStyle = await userBaseStyle; + baseStyle.element.textContent = rule.cssText; } $: setStyling("color", color);