fix: empty content check if inserting with replace-empty-target?

This commit is contained in:
Tienson Qin
2022-04-21 11:28:16 +08:00
parent 663a3c9632
commit 8f1f95741f

View File

@@ -448,7 +448,8 @@
sibling? (if (page-block? target-block') false sibling?)
move? (contains? #{:move-blocks :move-blocks-up-down :indent-outdent-blocks} outliner-op)
keep-uuid? (if move? true keep-uuid?)
replace-empty-target? (if (some? replace-empty-target?)
replace-empty-target? (if (and (some? replace-empty-target?)
(string/blank? (:block/content target-block')))
replace-empty-target?
(and sibling?
(string/blank? (:block/content target-block'))