scrollIntoView scrolls the view to the current selection or cursor position.
scrollIntoView
editor.commands.scrollIntoView()