Vanessa 2024-05-13 23:41:44 +08:00
parent eb909e5b8e
commit e8eef426a4
2 changed files with 5 additions and 1 deletions

View file

@ -133,7 +133,7 @@ export class MobileOutline {
}
if (currentElement) {
currentElement.classList.add("b3-list-item--focus");
this.element.scrollTop = currentElement.offsetTop - this.element.clientHeight / 2 - 30;
this.tree.element.scrollTop = currentElement.offsetTop - this.element.clientHeight / 2 - 30;
}
}

View file

@ -229,6 +229,10 @@ export class WYSIWYG {
}
});
}
/// #else
if (protyle.disabled) {
protyle.toolbar.range = getEditorRange(nodeElement);
}
/// #endif
}