fix: replace empty block when pasting

pull/5716/head^2
Tienson Qin 2022-06-16 07:38:17 +08:00
parent ec8109f8d0
commit bf75529cad
1 changed files with 2 additions and 1 deletions

View File

@ -1938,7 +1938,8 @@
(paste-block-cleanup block page exclude-properties format content-update-fn))
blocks)
result (outliner-core/insert-blocks! blocks' target-block {:sibling? sibling?
:outliner-op :paste})]
:outliner-op :paste
:replace-empty-target? true})]
(edit-last-block-after-inserted! result))))))
(defn- block-tree->blocks