mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
7982588da6
commit
4a656d3ab8
1 changed files with 5 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ import {newCardModel} from "../card/newCardTab";
|
|||
import {preventScroll} from "../protyle/scroll/preventScroll";
|
||||
import {clearOBG} from "../layout/dock/util";
|
||||
import {Model} from "../layout/Model";
|
||||
import {hideElements} from "../protyle/ui/hideElements";
|
||||
|
||||
export const openFileById = async (options: {
|
||||
app: App,
|
||||
|
|
@ -421,6 +422,10 @@ const switchEditor = (editor: Editor, options: IOpenFileOptions, allModels: IMod
|
|||
}
|
||||
pushBack(editor.editor.protyle, editor.editor.protyle.toolbar.range);
|
||||
}
|
||||
// https://github.com/siyuan-note/siyuan/issues/16445
|
||||
if (options.action.includes(Constants.CB_GET_OUTLINE)) {
|
||||
hideElements(["select"], editor.editor.protyle);
|
||||
}
|
||||
if (options.mode) {
|
||||
setEditMode(editor.editor.protyle, options.mode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue