From 0e840523102d7e7c15086d744f3370708b284f8c Mon Sep 17 00:00:00 2001 From: hkgnp Date: Tue, 22 Nov 2022 09:21:07 +0800 Subject: [PATCH] [fix] If user is not editing the page, insert content to the cursor; Otherwise insert to the target page and set it as editing? --- src/main/electron/listener.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/electron/listener.cljs b/src/main/electron/listener.cljs index dc09587341..8d453ef9a0 100644 --- a/src/main/electron/listener.cljs +++ b/src/main/electron/listener.cljs @@ -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})))))