fix: inline namespace tag editing

This commit is contained in:
Tienson Qin
2024-09-15 11:57:53 +08:00
parent b1a9e9ae30
commit a47608e953
7 changed files with 34 additions and 25 deletions

View File

@@ -3756,15 +3756,14 @@
(select-all-blocks! {})))))))
(defn escape-editing
([]
(escape-editing true))
([select?]
(p/do!
(save-current-block!)
(if select?
(when-let [node (some-> (state/get-input) (util/rec-get-node "ls-block"))]
(state/exit-editing-and-set-selected-blocks! [node]))
(state/clear-edit!)))))
[& {:keys [select? save-block?]
:or {save-block? true}}]
(p/do!
(when save-block? (save-current-block!))
(if select?
(when-let [node (some-> (state/get-input) (util/rec-get-node "ls-block"))]
(state/exit-editing-and-set-selected-blocks! [node]))
(state/clear-edit!))))
(defn replace-block-reference-with-content-at-point
[]