Split out property related fns

in order to make editor ns more maintainable
This commit is contained in:
Gabriel Horner
2023-04-28 18:18:34 -04:00
committed by Tienson Qin
parent f73d964899
commit 9628fc52b9
11 changed files with 182 additions and 163 deletions

View File

@@ -6,6 +6,7 @@
[frontend.db.utils :as db-utils]
[frontend.fs :as fs]
[frontend.handler.editor :as editor-handler]
[frontend.handler.editor.property :as editor-property]
[frontend.handler.page :as page-handler]
[frontend.handler.assets :as assets-handler]
[frontend.handler.notification :as notification]
@@ -132,7 +133,7 @@
(get-in highlight [:content :image])
(js/Date.now))
:hl-color (get-in highlight [:properties :color])}]
(editor-handler/set-block-property! (:block/uuid block) k v))))
(editor-property/set-block-property! (:block/uuid block) k v))))
(defn unlink-hl-area-image$
[^js _viewer current hl]