mirror of
https://github.com/logseq/logseq.git
synced 2026-05-21 03:12:38 +00:00
fix: editor cursor position
This commit is contained in:
@@ -2655,13 +2655,7 @@
|
||||
selection-blocks (state/get-selection-blocks)
|
||||
starting-block (state/get-selection-start-block-or-first)
|
||||
mobile-selection? (and (util/capacitor-new?) (seq selection-blocks))
|
||||
block-dom-element (util/rec-get-node target "ls-block")
|
||||
cursor-range (if (util/ios?)
|
||||
(:block/title block)
|
||||
(some-> block-dom-element
|
||||
(dom/by-class "block-content-inner")
|
||||
first
|
||||
util/caret-range))]
|
||||
block-dom-element (util/rec-get-node target "ls-block")]
|
||||
|
||||
(if mobile-selection?
|
||||
(let [ids (set (state/get-selection-block-ids))]
|
||||
@@ -2722,7 +2716,13 @@
|
||||
(->> title
|
||||
(property-file/remove-built-in-properties-when-file-based
|
||||
(state/get-current-repo) format)
|
||||
(drawer/remove-logbook)))]
|
||||
(drawer/remove-logbook)))
|
||||
cursor-range (if (util/ios?)
|
||||
(:block/title block)
|
||||
(some-> block-dom-element
|
||||
(dom/by-class "block-content-inner")
|
||||
first
|
||||
util/caret-range))]
|
||||
(state/set-editing!
|
||||
edit-input-id
|
||||
content
|
||||
|
||||
Reference in New Issue
Block a user