mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 07:05:10 +00:00
enhance: use block dom node for editing instead of container
This commit is contained in:
@@ -453,7 +453,7 @@
|
||||
(util/stop e)
|
||||
(state/clear-selection!)
|
||||
(when-let [block (and (:block/uuid config) (into {} (db/get-block-by-uuid (:block/uuid config))))]
|
||||
(state/set-editing! id (.getValue editor) block nil false))))
|
||||
(state/set-editing! id (.getValue editor) block nil {:move-cursor? false}))))
|
||||
(.addEventListener element "touchstart"
|
||||
(fn [e]
|
||||
(.stopPropagation e)))
|
||||
|
||||
Reference in New Issue
Block a user