Vanessa 2025-04-30 14:19:56 +08:00
parent 708da7c753
commit 74b5badbbc
2 changed files with 6 additions and 4 deletions

View file

@ -387,7 +387,7 @@ const switchEditor = (editor: Editor, options: IOpenFileOptions, allModels: IMod
highlightById(editor.editor.protyle, options.id, true);
} else if (options.action?.includes(Constants.CB_GET_FOCUS)) {
if (nodeElement) {
const newRange = focusBlock(nodeElement);
const newRange = focusBlock(nodeElement, undefined, options.action?.includes(Constants.CB_GET_SETID) ? false : true);
if (newRange) {
editor.editor.protyle.toolbar.range = newRange;
}