mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-12 23:46:13 +01:00
🐛 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:
parent
013306f949
commit
d141c28700
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue