Merge pull request #1747 from logseq/feat/integration-plugins-core

Feat/integration plugin core
This commit is contained in:
Tienson Qin
2021-06-11 17:32:38 +08:00
committed by GitHub
45 changed files with 11751 additions and 48 deletions

View File

@@ -875,9 +875,11 @@
:block/properties properties
:block/content content})]
(outliner-core/save-node block)
(let [opts {:key :block/change
:data [block]}]
(db/refresh! repo opts)))))))
;; update editing input content
(when-let [editing-block (state/get-edit-block)]
(and (= (:block/uuid editing-block) block-id)
(state/set-edit-content! (state/get-edit-input-id) content))))))))
(defn remove-block-property!
[block-id key]