mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 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:
parent
a00af12ce6
commit
b79f89d8a0
1 changed files with 5 additions and 1 deletions
|
@ -741,7 +741,11 @@ func GetHeadingChildrenDOM(id string, removeFoldAttr bool) (ret string) {
|
||||||
return ast.WalkContinue
|
return ast.WalkContinue
|
||||||
})
|
})
|
||||||
|
|
||||||
child.SetIALAttr("parent-heading", id)
|
if removeFoldAttr {
|
||||||
|
child.RemoveIALAttr("parent-heading")
|
||||||
|
} else {
|
||||||
|
child.SetIALAttr("parent-heading", id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if removeFoldAttr {
|
if removeFoldAttr {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue