refactor: move editor impl to db-based and file-based

This commit is contained in:
Tienson Qin
2023-06-26 19:07:25 +08:00
parent abf574a90a
commit 7e44ff09a8
7 changed files with 23 additions and 24 deletions

View File

@@ -9,7 +9,7 @@
[goog.object :as gobj]
[logseq.graph-parser.utf8 :as utf8]
[logseq.common.path :as path]
[frontend.handler.editor.impl.db :as db-impl]))
[frontend.handler.db-based.editor :as db-editor-handler]))
(defn save-code-editor!
[]
@@ -44,7 +44,7 @@
(and (not-empty (:file-path config))
(config/db-based-graph? repo))
(db-impl/save-file! (:file-path config) value)
(db-editor-handler/save-file! (:file-path config) value)
(not-empty (:file-path config))
(let [path (:file-path config)