mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-08 01:53:04 +08:00
docs: update the setOptions usage example
This commit is contained in:
parent
6db0d340b8
commit
6bad741cd6
@ -117,8 +117,10 @@ Update editor options.
|
|||||||
```js
|
```js
|
||||||
// Add a class to an existing editor instance
|
// Add a class to an existing editor instance
|
||||||
editor.setOptions({
|
editor.setOptions({
|
||||||
editorProps: attributes: {
|
editorProps: {
|
||||||
class: 'prose',
|
attributes: {
|
||||||
|
class: 'my-custom-class',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user