mirror of https://github.com/logseq/logseq
fix(electron): quick captured text is cleared when editing current
parent
73039901d0
commit
a1b731a77a
|
@ -197,12 +197,14 @@
|
|||
(editor-handler/insert (str "\n" content)))
|
||||
|
||||
(do
|
||||
(editor-handler/escape-editing)
|
||||
(when (not= page (state/get-current-page))
|
||||
(page-handler/create! page {:redirect? redirect-page?}))
|
||||
(editor-handler/escape-editing)
|
||||
(editor-handler/api-insert-new-block! content {:page page
|
||||
;; Or else this will clear the newly inserted content
|
||||
(js/setTimeout #(editor-handler/api-insert-new-block! content {:page page
|
||||
:edit-block? true
|
||||
:replace-empty-target? true}))))))
|
||||
:replace-empty-target? true})
|
||||
100))))))
|
||||
|
||||
(js/window.apis.on "openNewWindowOfGraph"
|
||||
;; Handle open new window in renderer, until the destination graph doesn't rely on setting local storage
|
||||
|
|
Loading…
Reference in New Issue