mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 07:30:24 +00:00
🐛 Maintain selection after font change
This commit is contained in:
parent
e9dcd64463
commit
57bfca4062
@ -101,8 +101,10 @@
|
|||||||
(impl/updateBlockData state block-key (clj->js attrs)))))
|
(impl/updateBlockData state block-key (clj->js attrs)))))
|
||||||
|
|
||||||
state (impl/applyInlineStyle state (legacy.txt/attrs-to-styles attrs))
|
state (impl/applyInlineStyle state (legacy.txt/attrs-to-styles attrs))
|
||||||
selected (impl/getSelectedBlocks state)]
|
selection-after-apply (impl/getSelection state)
|
||||||
(reduce update-blocks state selected)))
|
selected (impl/getSelectedBlocks state)
|
||||||
|
state (reduce update-blocks state selected)]
|
||||||
|
(impl/setSelection state selection-after-apply)))
|
||||||
|
|
||||||
(defn update-editor-current-inline-styles-fn
|
(defn update-editor-current-inline-styles-fn
|
||||||
[state update-fn]
|
[state update-fn]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user