mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
2e56d39ac3
commit
de53da0f27
1 changed files with 3 additions and 2 deletions
|
|
@ -57,9 +57,10 @@ const focusStack = async (app: App, stack: IBackStack) => {
|
|||
const editor = new Editor({
|
||||
app: app,
|
||||
tab,
|
||||
blockId: stack.zoomId || stack.protyle.block.rootID,
|
||||
blockId: stack.zoomId || stack.id || stack.protyle.block.rootID,
|
||||
rootId: stack.protyle.block.rootID,
|
||||
action: stack.zoomId ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL, Constants.CB_GET_UNUNDO] : [Constants.CB_GET_FOCUS, Constants.CB_GET_UNUNDO]
|
||||
action: stack.zoomId ? [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL, Constants.CB_GET_ALL, Constants.CB_GET_UNUNDO] :
|
||||
[Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL, Constants.CB_GET_UNUNDO]
|
||||
});
|
||||
tab.addModel(editor);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue