fix(editor): can't enter to create a new block at the end of code

pull/1074/head
Tienson Qin 2021-01-05 19:38:51 +08:00
parent b0a6700ab9
commit 190ef803e4
1 changed files with 11 additions and 8 deletions

View File

@ -663,8 +663,11 @@
text-properties)
value (if create-new-block?
(str
(->
(block-text-with-time block format fst-block-text properties)
snd-block-text)
(string/trimr))
"\n"
(string/triml snd-block-text))
(block-text-with-time block format value properties))
value (rebuild-block-content value format)
[new-content value] (new-file-content block file-content value)