docs: update content, fix #210

This commit is contained in:
Hans Pagel
2021-03-15 11:06:09 +01:00
parent 15461aeea4
commit a7353e3e83

View File

@@ -19,7 +19,7 @@ You can store that in your database (or send it to an API) and restore the docum
```js
new Editor({
content: {
"type": "document",
"type": "doc",
"content": [
// …
]
@@ -30,8 +30,8 @@ new Editor({
Or if you need to wait for something, you can do it later through the editor instance:
```js
editor.setContent({
"type": "document",
editor.commands.setContent({
"type": "doc",
"content": [
// …
]