improve(plugin): initial impls of block related apis

This commit is contained in:
charlie
2021-05-20 17:47:48 +08:00
parent 012b5e022d
commit 4fe0b806c6
3 changed files with 58 additions and 8 deletions

View File

@@ -637,7 +637,8 @@
repo (state/get-current-repo)]
(outliner-insert-block! {} block new-block sibling?)
(db/refresh! repo {:key :block/insert
:data [new-block]})))))
:data [new-block]})
new-block))))
(defn update-timestamps-content!
[{:block/keys [repeated? marker] :as block} content]