chore: remove bindings

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
This commit is contained in:
Yue Yang
2022-03-23 14:20:18 +08:00
committed by Junyi Du
parent c74e2ba390
commit acb3a7bd61

View File

@@ -58,7 +58,6 @@
;; FIXME: should support multiple images concurrently uploading
(defonce *asset-uploading? (atom false))
(defonce *asset-uploading-process (atom 0))
(defonce *selected-text (atom nil))
@@ -183,7 +182,6 @@
(cursor/move-cursor-to node pos)
(state/set-state! :editor/pos nil))))))
(defn highlight-block!
[block-uuid]
(let [blocks (array-seq (js/document.getElementsByClassName (str block-uuid)))]
@@ -1678,7 +1676,6 @@
"+" "+"})
;; ":" ":" ; TODO: only properties editing and org mode tag
(def reversed-autopair-map
(zipmap (vals autopair-map)
(keys autopair-map)))
@@ -2737,10 +2734,7 @@
(do
(util/stop e)
;; not the top block in a page or journal
(when-not
(let [left-id (:db/id (:block/left block))
page-id (:db/id (:block/page block))]
(= left-id page-id))
(when-not (= (:block/left block) (:block/page block))
(delete-block! repo false)))
(and (> current-pos 1)
@@ -3030,7 +3024,6 @@
:key k
:shift? (.-shiftKey e)}))))))
(defn editor-on-click!
[id]
(fn [_e]