add more content everywhere

This commit is contained in:
Hans Pagel
2020-09-15 21:07:16 +02:00
parent 3470400785
commit 17c22b8a2b
8 changed files with 46 additions and 37 deletions

View File

@@ -8,18 +8,16 @@ See an example with `autoFocus: true` here:
```js
import { Editor } from '@tiptap/core'
import extensions from '@tiptap/starter-kit'
import defaultExtensions from '@tiptap/starter-kit'
new Editor({
element: document.getElementsByClassName('element'),
extensions: extensions(),
extensions: defaultExtensions(),
content: '<p>Hey there!</p>',
autoFocus: true,
})
```
This will set the focus to tiptap after the editor is initialized. Of course, there are way more options available. Read about all of them in the related links.
This will set the focus to tiptap after the editor is initialized. Of course, there are way more options available.
### Related links
* [See available options](#)
Check out the API documentation to see [all available options](/api/editor/).