mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 10:26:35 +00:00
enhance(ux): up/down for the code type block
This commit is contained in:
@@ -171,12 +171,13 @@
|
||||
(state/set-editor-last-input-time! repo (util/time-ms))))
|
||||
|
||||
(defn- edit-block-aux
|
||||
[repo block content text-range {:keys [container-id]}]
|
||||
[repo block content text-range {:keys [container-id direction]}]
|
||||
(when block
|
||||
(let [container-id (or container-id
|
||||
(state/get-current-editor-container-id)
|
||||
:unknown-container)]
|
||||
(state/set-editing! (str "edit-block-" (:block/uuid block)) content block text-range {:container-id container-id}))
|
||||
(state/set-editing! (str "edit-block-" (:block/uuid block)) content block text-range
|
||||
{:container-id container-id :direction direction}))
|
||||
(mark-last-input-time! repo)))
|
||||
|
||||
(defn sanity-block-content
|
||||
|
||||
Reference in New Issue
Block a user