fix: can't create blocks after using template

This commit is contained in:
Tienson Qin
2021-04-19 22:36:46 +08:00
parent 7d14759f77
commit 407d93e5ca
4 changed files with 60 additions and 55 deletions

View File

@@ -1828,8 +1828,7 @@
(text/remove-property "template")
(text/remove-property "including-parent")
template/resolve-dynamic-template!)))
;; restore state & remove '/' char
(state/set-editor-show-template-search! false)
(clear-when-saved!)
(insert-command! id "" format {}))
(when-let [input (gdom/getElement id)]
(.focus input))))