mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +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
b96781004b
commit
48d5f0b788
2 changed files with 5 additions and 9 deletions
|
|
@ -1559,14 +1559,6 @@ func (tx *Transaction) doUpdate(operation *Operation) (ret *TxErr) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if oldNode.HeadingLevel != updatedNode.HeadingLevel {
|
||||
// 编辑折叠标题下方块,并且这个块的标题层级发生了变化(比如从 H2 变为 H3 或者从标题块变成段落块),则刷新所有编辑器以保持一致性
|
||||
go func() {
|
||||
tx.WaitForCommit()
|
||||
ReloadProtyle(tree.ID)
|
||||
}()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue