chore: simplify indent && outdent code

This commit is contained in:
Tienson Qin
2021-05-19 09:56:35 +08:00
parent 514fd0ea0b
commit a7e4140533
3 changed files with 19 additions and 46 deletions

View File

@@ -59,7 +59,7 @@
:upload-images))))
(editor-handler/clear-when-saved!)
;; TODO: ugly
(when-not (contains? #{:insert :indent :outdent :auto-save :undo :redo} (state/get-editor-op))
(when-not (contains? #{:insert :indent-outdent :auto-save :undo :redo} (state/get-editor-op))
(editor-handler/save-block! (get-state) value)))
state)