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