From 0988a1ad4ee6ca264b6efa4a95937624526a45da Mon Sep 17 00:00:00 2001 From: Christopher Lepski Date: Wed, 8 Jan 2025 16:01:00 +0100 Subject: [PATCH] fix: Fix insert --- packages/core/foundation/handle-edit.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/foundation/handle-edit.ts b/packages/core/foundation/handle-edit.ts index 5b9b2835f..9122dc5d0 100644 --- a/packages/core/foundation/handle-edit.ts +++ b/packages/core/foundation/handle-edit.ts @@ -158,6 +158,8 @@ function handleInsert({ reference = null; } + parent.insertBefore(node, reference); + if (parentNode) { // undo: move child node back to original place return {