docs: update the setOptions usage example
This commit is contained in:
@@ -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',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user