refactor(editor): remove unused code

This commit is contained in:
Tienson Qin
2020-10-29 19:14:45 +08:00
parent 7d34701dff
commit 47f8e517fb

View File

@@ -1298,13 +1298,11 @@
dummy?)
(let [value (text/remove-level-spaces value format true)
new-value (block/with-levels value format block)
properties (with-timetracking-properties block new-value)]
(let [new-block {:block block
:new-value new-value}]
;; FIXME: somehow frontend.components.editor's will-unmount event will loop forever
;; maybe we shouldn't save the block/file in "will-unmount" event?
(save-block-if-changed! block new-value
{:custom-properties properties}))))))
properties (with-timetracking-properties block value)]
;; FIXME: somehow frontend.components.editor's will-unmount event will loop forever
;; maybe we shouldn't save the block/file in "will-unmount" event?
(save-block-if-changed! block new-value
{:custom-properties properties})))))
(defn on-up-down
[state e up?]