Vanessa 2025-11-23 11:53:10 +08:00
parent 347a0473c3
commit 63f2d72673
5 changed files with 17 additions and 8 deletions

View file

@ -464,6 +464,9 @@ const focusElementById = (protyle: IProtyle, action: string[], scrollAttr?: IScr
}
});
}
if (!focusElement && protyle.block.id === protyle.block.rootID) {
focusElement = protyle.title.editElement;
}
if (protyle.block.mode === 4) {
preventScroll(protyle);
focusElement = protyle.wysiwyg.element.lastElementChild;