mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
[fix] If user is not editing the page, insert content to the cursor; Otherwise insert to the target page and set it as editing?
This commit is contained in:
@@ -175,7 +175,7 @@
|
||||
(if (and (state/get-edit-block) (not state/editing?)) ; changed to not so that block is created at the end of the page
|
||||
(editor-handler/insert content)
|
||||
(editor-handler/api-insert-new-block! content {:page page
|
||||
:edit-block? true
|
||||
:edit-block? false
|
||||
:replace-empty-target? true})))))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user