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 ```js
new Editor({ new Editor({
content: { content: {
"type": "document", "type": "doc",
"content": [ "content": [
// … // …
] ]
@@ -30,8 +30,8 @@ new Editor({
Or if you need to wait for something, you can do it later through the editor instance: Or if you need to wait for something, you can do it later through the editor instance:
```js ```js
editor.setContent({ editor.commands.setContent({
"type": "document", "type": "doc",
"content": [ "content": [
// … // …
] ]