mirror of https://github.com/logseq/logseq
fix: quit editor after tagging a block
parent
b2161ac5ec
commit
412447a70a
|
@ -55,6 +55,7 @@
|
|||
[frontend.handler.property :as property-handler]
|
||||
[frontend.handler.whiteboard :as whiteboard-handler]
|
||||
[frontend.handler.web.nfs :as nfs-handler]
|
||||
[frontend.handler.editor :as editor-handler]
|
||||
[frontend.mobile.core :as mobile]
|
||||
[frontend.mobile.graph-picker :as graph-picker]
|
||||
[frontend.mobile.util :as mobile-util]
|
||||
|
@ -1008,6 +1009,9 @@
|
|||
(editor-handler/set-blocks-collapsed! [block-id] false)))))
|
||||
(property-handler/editing-new-property!))
|
||||
|
||||
(defmethod handle :editor/edit-block [[_ block pos id opts]]
|
||||
(editor-handler/edit-block! block pos id opts))
|
||||
|
||||
(defn run!
|
||||
[]
|
||||
(let [chan (state/get-events-chan)]
|
||||
|
|
|
@ -169,7 +169,9 @@
|
|||
:block/content ""
|
||||
:block/refs []
|
||||
:block/link [:block/uuid (:block/uuid page-m)]}]
|
||||
merge-tx))))))
|
||||
merge-tx)))
|
||||
|
||||
(state/pub-event! [:editor/edit-block page-m :max (:block/uuid page-m) {}]))))
|
||||
(reset! (:editor/create-page? @state/state) false)))
|
||||
|
||||
(defn rebuild-block-refs
|
||||
|
|
Loading…
Reference in New Issue