mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 05:48:49 +01:00
This commit is contained in:
parent
2ffc64a500
commit
edcd372154
2 changed files with 9 additions and 0 deletions
|
|
@ -111,6 +111,9 @@ export const globalShortcut = (app: App) => {
|
|||
item.classList.remove("protyle-breadcrumb__bar--hide");
|
||||
});
|
||||
window.siyuan.hideBreadcrumb = false;
|
||||
getAllModels().editor.forEach(item => {
|
||||
item.editor.protyle.breadcrumb.render(item.editor.protyle, true);
|
||||
});
|
||||
}
|
||||
if (event.buttons === 0 && // 鼠标按键被按下时不触发
|
||||
window.siyuan.layout.bottomDock &&
|
||||
|
|
|
|||
|
|
@ -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