fix: block reference gets lost on alt-dragged blocks after re-index

close #2313
pull/2422/head
Tienson Qin 2021-07-13 12:21:00 +08:00
parent 3382037fc7
commit 86661c2001
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@
(cond
alt-key?
(do
(editor-handler/set-block-property! (:block/uuid current-block)
:id
(str (:block/uuid current-block)))
(editor-handler/api-insert-new-block!
(util/format "((%s))" (str (:block/uuid current-block)))
{:block-uuid (:block/uuid target-block)