group all content files by section
This commit is contained in:
25
docs/src/docPages/guide/configuration.md
Normal file
25
docs/src/docPages/guide/configuration.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Configuration
|
||||
|
||||
tiptap is all about customization. There are a ton of options to configure the behavior and functionality of the editor. Most of those settings can be set before creating the Editor. Give tiptap a JSON with all the settings you would like to overwrite.
|
||||
|
||||
## Overwrite the default settings
|
||||
|
||||
See an example with `autoFocus: true` here:
|
||||
|
||||
```js
|
||||
import { Editor } from '@tiptap/core'
|
||||
import extensions from '@tiptap/starter-kit'
|
||||
|
||||
new Editor({
|
||||
element: document.getElementsByClassName('element'),
|
||||
extensions: extensions(),
|
||||
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.
|
||||
|
||||
### Related links
|
||||
|
||||
* [See available options](#)
|
||||
Reference in New Issue
Block a user