mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🐛 Fix assets dir locating https://github.com/siyuan-note/siyuan/issues/16353
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
2d9832cd81
commit
ed94948897
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue