Merge branch 'master' into feat/db

This commit is contained in:
Gabriel Horner
2024-10-18 17:35:28 -04:00
3 changed files with 13 additions and 9 deletions

View File

@@ -232,10 +232,11 @@
(when id
(let [clipboard-data (gobj/get e "clipboardData")
files (.-files clipboard-data)]
(when-let [file (first files)]
(when-let [block (state/get-edit-block)]
(editor-handler/upload-asset! id #js[file] (:block/format block)
editor-handler/*asset-uploading? true)))
(loop [files files]
(when-let [file (first files)]
(when-let [block (state/get-edit-block)]
(editor-handler/upload-asset! id #js[file] (:block/format block) editor-handler/*asset-uploading? true))
(recur (rest files))))
(util/stop e))))
(defn editor-on-paste!