mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Improve fold heading editing https://github.com/siyuan-note/siyuan/issues/15848
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
f42301a204
commit
c25ed2aec2
1 changed files with 7 additions and 0 deletions
|
|
@ -1577,6 +1577,13 @@ func unfoldParentFoldedHeading(node *ast.Node) {
|
|||
}
|
||||
parentFoldedHeading.RemoveIALAttr("fold")
|
||||
parentFoldedHeading.RemoveIALAttr("heading-fold")
|
||||
|
||||
evt := util.NewCmdResult("transactions", 0, util.PushModeBroadcast)
|
||||
evt.Data = []*Transaction{{
|
||||
DoOperations: []*Operation{{Action: "unfoldHeading", ID: parentFoldedHeading.ID}},
|
||||
UndoOperations: []*Operation{{Action: "foldHeading", ID: parentFoldedHeading.ID}},
|
||||
}}
|
||||
util.PushEvent(evt)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue