Browse Source

[fix] If user is not editing the page, insert content to the cursor; Otherwise insert to the target page and set it as editing?

hkgnp 2 years ago
parent
commit
0e84052310
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/electron/listener.cljs

+ 1 - 1
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})))))