🎨 Copy/Cut folded heading changed to copy/cut Headings and Bottom Blocks and support multiple headings copy/cut https://github.com/siyuan-note/siyuan/issues/8019

This commit is contained in:
Daniel 2025-09-06 17:30:35 +08:00
parent 2a8b47b518
commit 68991a6aef
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -672,7 +672,6 @@ func GetHeadingChildrenDOM(id string, removeFoldAttr bool) (ret string) {
children := treenode.HeadingChildren(heading)
nodes = append(nodes, children...)
// 取消折叠 https://github.com/siyuan-note/siyuan/issues/13232#issuecomment-2535955152
for _, child := range children {
ast.Walk(child, func(n *ast.Node, entering bool) ast.WalkStatus {
if !entering {
@ -685,6 +684,8 @@ func GetHeadingChildrenDOM(id string, removeFoldAttr bool) (ret string) {
}
return ast.WalkContinue
})
child.SetIALAttr("parent-heading", id)
}
if removeFoldAttr {