Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Fix assets dir locating https://github.com/siyuan-note/siyuan/issues/16353

Danieled949488972b
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index f2e9421af5..4a48bc4b90 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