🎨 Improve copy/cut/delete Headings and Bottom Blocks menu https://github.com/siyuan-note/siyuan/issues/15797

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-21 12:18:40 +08:00
parent a00af12ce6
commit b79f89d8a0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -741,8 +741,12 @@ func GetHeadingChildrenDOM(id string, removeFoldAttr bool) (ret string) {
return ast.WalkContinue
})
if removeFoldAttr {
child.RemoveIALAttr("parent-heading")
} else {
child.SetIALAttr("parent-heading", id)
}
}
if removeFoldAttr {
heading.RemoveIALAttr("fold")