diff --git a/packages/web/editor.tsx b/packages/web/editor.tsx index e3a50631..ec49f5d6 100644 --- a/packages/web/editor.tsx +++ b/packages/web/editor.tsx @@ -670,6 +670,10 @@ export class Editor { }); } else { editorView.scrollDOM.scrollTop = 0; + editorView.dispatch({ + selection: { anchor: 0 }, + scrollIntoView: true, + }); } editorView.focus(); }