mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🐛 Fix v2/v3 wrong styling
This commit is contained in:
parent
8f30a95ca0
commit
6fd264051a
@ -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")
|
||||
|
||||
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user