diff --git a/lurchmath/header-editor.js b/lurchmath/header-editor.js index 7320c13b..92c00136 100644 --- a/lurchmath/header-editor.js +++ b/lurchmath/header-editor.js @@ -415,6 +415,7 @@ export const install = editor => { editor.insertContent( allPreviewHTML ) editor.undoManager.clear() editor.selection.setCursorLocation() // deselect new insertions + editor.getWin().scrollTo(0, 0) // scroll the window to the top } } ) }