From ed949488972be1d6bdf6370d4544631c172e851e Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 15 Nov 2025 10:44:50 +0800 Subject: [PATCH] :bug: Fix assets dir locating https://github.com/siyuan-note/siyuan/issues/16353 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/transaction.go | 2 ++ 1 file changed, 2 insertions(+) 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