🐛 Fix v2/v3 wrong styling

This commit is contained in:
Aitor Moreno 2026-04-13 14:43:52 +02:00 committed by Belén Albeza
parent 8f30a95ca0
commit 6fd264051a
2 changed files with 5 additions and 3 deletions

View File

@ -811,7 +811,8 @@
(rx/of (update-text-attrs {:id id :attrs attrs}))
(rx/empty)))
(when (features/active-feature? state "text-editor/v2")
(when (and (features/active-feature? state "text-editor/v2")
(not (features/active-feature? state "text-editor-wasm/v1")))
(rx/of (v2-update-text-editor-styles id attrs)))
(when (features/active-feature? state "render-wasm/v1")

View File

@ -307,8 +307,9 @@
"Apply style attrs to the currently selected text spans.
Updates the cached content, pushes to WASM, and returns {:shape-id :content} for saving."
[attrs]
(text-editor/apply-styles-to-selection attrs use-shape set-shape-text-content)
(request-render "apply-styles-to-selection"))
(let [result (text-editor/apply-styles-to-selection attrs use-shape set-shape-text-content)]
(request-render "apply-styles-to-selection")
result))
(defn set-parent-id
[id]