From 9759adf747c744a11a82efbb11df56bf80fc6316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Albeza?= Date: Wed, 27 Aug 2025 16:52:57 +0200 Subject: [PATCH] :bug: Fix new inline text styles not being applied correctly --- frontend/src/app/main/data/workspace/texts.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index 04e52d322b..e780226bd5 100644 --- a/frontend/src/app/main/data/workspace/texts.cljs +++ b/frontend/src/app/main/data/workspace/texts.cljs @@ -812,7 +812,9 @@ (effect [_ state _] (when (features/active-feature? state "text-editor/v2") (let [instance (:workspace-editor state) - styles (styles/attrs->styles attrs)] + attrs-to-override (some-> (editor.v2/getCurrentStyle instance) (styles/get-styles-from-style-declaration)) + overriden-attrs (merge attrs-to-override attrs) + styles (styles/attrs->styles overriden-attrs)] (editor.v2/applyStylesToSelection instance styles)))))) (defn update-all-attrs