mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 23:44:06 +01:00
This commit is contained in:
parent
2ffc64a500
commit
edcd372154
2 changed files with 9 additions and 0 deletions
|
|
@ -2003,6 +2003,12 @@ export class WYSIWYG {
|
|||
range.selectNodeContents(emptyEditElement);
|
||||
range.collapse(true);
|
||||
focusByRange(range);
|
||||
// 需等待 range 更新再次进行渲染
|
||||
if (protyle.options.render.breadcrumb) {
|
||||
setTimeout(() => {
|
||||
protyle.breadcrumb.render(protyle);
|
||||
}, Constants.TIMEOUT_TRANSITION)
|
||||
}
|
||||
} else if (lastEditElement) {
|
||||
range.selectNodeContents(lastEditElement);
|
||||
range.collapse(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue