docs: update content

This commit is contained in:
Philipp Kühn 2021-05-05 14:19:24 +02:00
parent 63b4e15b0c
commit e2756aab5f

View File

@ -29,5 +29,27 @@ editor.commands.insertContent({
},
],
})
// Multiple nodes at once
editor.commands.insertContent([
{
type: 'paragraph',
content: [
{
type: 'text',
text: 'First paragraph',
},
],
},
{
type: 'paragraph',
content: [
{
type: 'text',
text: 'Second paragraph',
},
],
},
])
```