[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:
hkgnp
2022-11-22 09:21:07 +08:00
committed by Tienson Qin
parent b80a0abc1a
commit 0e84052310

View File

@@ -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})))))