fix: code not saved when click the bottom line to add a new block

related to #5406
This commit is contained in:
Tienson Qin
2022-05-25 22:37:31 +08:00
parent 1d1d8877b6
commit 2eb5bbb6e8

View File

@@ -168,6 +168,7 @@
new-content (if (string/blank? value)
(str prefix surfix)
(str prefix value "\n" surfix))]
(state/set-edit-content! (state/get-edit-input-id) new-content)
(editor-handler/save-block-if-changed! block new-content))
(:file-path config)