docs: update the setOptions usage example

This commit is contained in:
Hans Pagel 2021-10-01 21:42:34 +02:00
parent 6db0d340b8
commit 6bad741cd6

View File

@ -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',
},
},
})
```