🐛 The API insertBlock was not inserting completely via nextID https://github.com/siyuan-note/siyuan/issues/17149

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-03-06 17:16:53 +08:00
parent 013306f949
commit d141c28700
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1237,6 +1237,9 @@ func (tx *Transaction) doInsert0(operation *Operation, tree *parse.Tree) (ret *T
insertedNode = insertedNode.FirstChild
}
node.InsertBefore(insertedNode)
for _, remain := range remains {
node.InsertBefore(remain)
}
} else if "" != previousID {
node = treenode.GetNodeInTree(tree, previousID)
if nil == node {