Vanessa 2025-05-06 13:20:58 +08:00
parent 541d5613fd
commit 783573ee8a
6 changed files with 8 additions and 6 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, undefined, options.action?.includes(Constants.CB_GET_SETID) ? false : true);
const newRange = focusBlock(nodeElement, undefined, options.action?.includes(Constants.CB_GET_OUTLINE) ? false : true);
if (newRange) {
editor.editor.protyle.toolbar.range = newRange;
}