Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-11-15 10:44:50 +08:00
parent 2d9832cd81
commit ed94948897
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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