From 1d3bf74d083bed6684ff18869675488029439016 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 31 Oct 2025 12:59:59 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16159 --- app/src/editor/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts index ce96228f6..a1661420e 100644 --- a/app/src/editor/util.ts +++ b/app/src/editor/util.ts @@ -412,7 +412,7 @@ const switchEditor = (editor: Editor, options: IOpenFileOptions, allModels: IMod } } } - pushBack(editor.editor.protyle, undefined, nodeElement || editor.editor.protyle.wysiwyg.element.firstElementChild); + pushBack(editor.editor.protyle, editor.editor.protyle.toolbar.range); } if (options.mode) { setEditMode(editor.editor.protyle, options.mode);