Closed listensay closed 7 months ago
consolog edior.getHTML() is undefined how should i get editor html content
Please remember that Tiptap editor is client only.
So you'll need to do something like
onMounted(() => {
if(!!editor){
console.log(unref(editor).getHTML())
}
})
Please remember that Tiptap editor is client only.
So you'll need to do something like
onMounted(() => { if(!!editor){ console.log(unref(editor).getHTML()) } })
um..ok thank you
Usually the content is checked when submitting or to check changes in editor which are both on client side so it's fine either way.
FYI this implementation where editor works only on client side is from Tiptap themselves and not by this package.
see demo