浏览代码

[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 年之前
父节点
当前提交
0e84052310
共有 1 个文件被更改,包括 1 次插入1 次删除
  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})))))