tiptap/docs/api/commands/scroll-into-view.md

8 lines
149 B
Markdown
Raw Normal View History

2021-04-21 17:03:33 +08:00
# scrollIntoView
`scrollIntoView` scrolls the view to the current selection or cursor position.
2021-04-21 17:03:33 +08:00
## Usage
```js
editor.commands.scrollIntoView()
```