docs: update content, fix #210
This commit is contained in:
@@ -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": [
|
||||||
// …
|
// …
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user