Merge branch 'main' of github.com:ueberdosis/tiptap

This commit is contained in:
Hans Pagel
2021-10-01 21:42:45 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -441,7 +441,7 @@ const CustomExtension = Extension.create({
onUpdate() { onUpdate() {
// The content has changed. // The content has changed.
}, },
onSelectionUpdate({editor}) { onSelectionUpdate({ editor }) {
// The selection has changed. // The selection has changed.
}, },
onTransaction({ transaction }) { onTransaction({ transaction }) {

View File

@@ -100,7 +100,7 @@ const editor = new Editor({
content: `<p>Example Content</p>`, content: `<p>Example Content</p>`,
// triggered on every change // triggered on every change
onUpdate() { onUpdate: () => {
const json = this.getJSON() const json = this.getJSON()
// send the content to an API here // send the content to an API here
}, },