This commit is contained in:
Hans Pagel
2020-09-21 17:50:50 +02:00
parent b2c85f11df
commit 0c6e49362f
5 changed files with 37 additions and 31 deletions

View File

@@ -11,9 +11,9 @@ const editor = new Editor({
onInit: () => {
// editor is initialized
},
onUpdate: ({ getHTML }) => {
onUpdate: ({ html }) => {
// get new content on update
const newContent = getHTML()
const newContent = html()
},
})
```
@@ -27,8 +27,8 @@ editor.on('init', () => {
// editor is initialized
})
editor.on('update', ({ getHTML }) => {
editor.on('update', ({ html }) => {
// get new content on update
const newContent = getHTML()
const newContent = html()
})
```