mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 10:56:20 +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/of (update-text-attrs {:id id :attrs attrs}))
|
||||||
(rx/empty)))
|
(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)))
|
(rx/of (v2-update-text-editor-styles id attrs)))
|
||||||
|
|
||||||
(when (features/active-feature? state "render-wasm/v1")
|
(when (features/active-feature? state "render-wasm/v1")
|
||||||
|
|||||||
@ -307,8 +307,9 @@
|
|||||||
"Apply style attrs to the currently selected text spans.
|
"Apply style attrs to the currently selected text spans.
|
||||||
Updates the cached content, pushes to WASM, and returns {:shape-id :content} for saving."
|
Updates the cached content, pushes to WASM, and returns {:shape-id :content} for saving."
|
||||||
[attrs]
|
[attrs]
|
||||||
(text-editor/apply-styles-to-selection attrs use-shape set-shape-text-content)
|
(let [result (text-editor/apply-styles-to-selection attrs use-shape set-shape-text-content)]
|
||||||
(request-render "apply-styles-to-selection"))
|
(request-render "apply-styles-to-selection")
|
||||||
|
result))
|
||||||
|
|
||||||
(defn set-parent-id
|
(defn set-parent-id
|
||||||
[id]
|
[id]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user