mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +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
|
||||
// Add a class to an existing editor instance
|
||||
editor.setOptions({
|
||||
editorProps: attributes: {
|
||||
class: 'prose',
|
||||
editorProps: {
|
||||
attributes: {
|
||||
class: 'my-custom-class',
|
||||
},
|
||||
},
|
||||
})
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user