mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
fix: undo cursor
This commit is contained in:
@@ -674,6 +674,7 @@
|
||||
:block/container (gobj/get container "id"))
|
||||
block)
|
||||
content (or content "")]
|
||||
|
||||
(swap! state
|
||||
(fn [state]
|
||||
(-> state
|
||||
@@ -682,7 +683,10 @@
|
||||
:editor/block block
|
||||
:editor/editing? {edit-input-id true}
|
||||
:editor/last-edit-block-id edit-input-id
|
||||
:cursor-range cursor-range)))))))
|
||||
:cursor-range cursor-range))))
|
||||
|
||||
(let [input (gdom/getElement edit-input-id)]
|
||||
(set! (.-value input) (string/trim content))))))
|
||||
|
||||
(defn clear-edit!
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user