docs: minor fixes

This commit is contained in:
Hans Pagel
2021-10-01 22:25:12 +02:00
parent 6dba36464f
commit ab21b304e0
2 changed files with 10 additions and 10 deletions

View File

@@ -237,6 +237,15 @@ new Editor({
### autofocus
With `autofocus` you can force the cursor to jump in the editor on initialization.
| Value | Description |
| --------- | ------------------------------------------------------ |
| `'start'` | Sets the focus to the beginning of the document. |
| `'end'` | Sets the focus to the end of the document. |
| `Number` | Sets the focus to a specific position in the document. |
| `true` | Enables autofocus. |
| `false` | Disables autofocus. |
| `null` | Disables autofocus. |
```js
import { Editor } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'
@@ -249,15 +258,6 @@ new Editor({
})
```
| Value | Description |
| --------- | ------------------------------------------------------ |
| `'start'` | Sets the focus to the beginning of the document. |
| `'end'` | Sets the focus to the end of the document. |
| `Number` | Sets the focus to a specific position in the document. |
| `true` | Enables autofocus. |
| `false` | Disables autofocus. |
| `null` | Disables autofocus. |
### enableInputRules
By default, tiptap enables all [input rules](/guide/custom-extensions/#input-rules). With `enableInputRules` you can disable that.