refactor: simplify editor timeout

This commit is contained in:
Tienson Qin
2021-04-18 17:27:07 +08:00
parent c61a93112e
commit 2f808c14bf
7 changed files with 73 additions and 98 deletions

View File

@@ -68,7 +68,6 @@
(string/trimr value)
"\n")
content' (utf8/insert! content start_pos end_pos value)]
(state/set-editor-op! :code-editor)
(editor-handler/save-block-if-changed! block content')
(let [new-pos-meta {:start_pos start_pos
:end_pos (+ start_pos