diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go index f2e9421af..4a48bc4b9 100644 --- a/kernel/model/transaction.go +++ b/kernel/model/transaction.go @@ -1156,6 +1156,7 @@ func (tx *Transaction) doLargeInsert(previousID string) (ret *TxErr) { data := strings.ReplaceAll(operation.Data.(string), editor.FrontEndCaret, "") subTree := tx.luteEngine.BlockDOM2Tree(data) + subTree.Box, subTree.Path = tree.Box, tree.Path tx.processGlobalAssets(subTree) insertedNode := subTree.Root.FirstChild @@ -1288,6 +1289,7 @@ func (tx *Transaction) doInsert(operation *Operation) (ret *TxErr) { data := strings.ReplaceAll(operation.Data.(string), editor.FrontEndCaret, "") subTree := tx.luteEngine.BlockDOM2Tree(data) + subTree.Box, subTree.Path = tree.Box, tree.Path tx.processGlobalAssets(subTree) insertedNode := subTree.Root.FirstChild