mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-02 02:40:15 +01:00
This commit is contained in:
parent
43391b761d
commit
5ea99c26f1
4 changed files with 25 additions and 20 deletions
|
|
@ -323,16 +323,6 @@ const getUnInitTab = (options: IOpenFileOptions) => {
|
|||
};
|
||||
|
||||
const switchEditor = (editor: Editor, options: IOpenFileOptions, allModels: IModels) => {
|
||||
allModels.editor.forEach((item) => {
|
||||
if (!item.element.isSameNode(editor.element) && window.siyuan.editorIsFullscreen && item.element.classList.contains("fullscreen")) {
|
||||
item.element.classList.remove("fullscreen");
|
||||
resize(item.editor.protyle);
|
||||
}
|
||||
});
|
||||
if (window.siyuan.editorIsFullscreen) {
|
||||
editor.element.classList.add("fullscreen");
|
||||
resize(editor.editor.protyle);
|
||||
}
|
||||
if (options.keepCursor) {
|
||||
editor.parent.headElement.setAttribute("keep-cursor", options.id);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue