mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 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:
parent
2a8b47b518
commit
68991a6aef
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue