This commit is contained in:
2024-10-01 13:06:10 +02:00
parent da62213579
commit f461bb7694
3 changed files with 5 additions and 7 deletions

View File

@@ -148,9 +148,9 @@ const editor = useEditor({
content: "<p>I'm running Tiptap with Vue.js. 🎉</p>",
extensions: [TiptapStarterKit],
onUpdate({editor}) {
console.log(editor.getJSON())
console.log(editor.getHTML())
console.log(editor.getText())
//console.log(editor.getJSON())
//console.log(editor.getHTML())
//console.log(editor.getText())
emit('updateContent',{json: editor.getJSON(),html: editor.getHTML(), text: editor.getText()})
},
onCreate({editor}) {