fix(editor): move block with top option (as before for plugin api)

pull/3855/head^2
charlie 2022-01-17 11:46:00 +08:00 committed by Tienson Qin
parent ddbe7cabeb
commit e0ed576ac3
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@
(if first-child?
(let [parent (tree/-get-parent target-node)]
(outliner-core/move-subtree current-node parent false))
(outliner-core/move-subtree current-node target-node true)))
(let [before-node (tree/-get-left target-node)]
(outliner-core/move-subtree current-node before-node true))))
nested?
(outliner-core/move-subtree current-node target-node false)