This commit is contained in:
Vanessa 2023-11-13 00:37:38 +08:00
parent 359487c09c
commit e597a68405

View file

@ -301,7 +301,14 @@ export const goEnd = (protyle: IProtyle) => {
mode: 4,
size: window.siyuan.config.editor.dynamicLoadBlocks,
}, getResponse => {
onGet({data: getResponse, protyle, action: [Constants.CB_GET_FOCUS]});
onGet({
data: getResponse,
protyle,
action: [Constants.CB_GET_FOCUS],
afterCB() {
focusBlock(protyle.wysiwyg.element.lastElementChild, undefined, false);
}
});
});
} else {
protyle.contentElement.scrollTop = protyle.contentElement.scrollHeight;