DEV Community

Discussion on: Rich text editor for Vue using Tiptap and Vuetify

Collapse
 
nomikz profile image
nomikz

How to get the content of the editor?
Is it in this.editor? This part is confusing me. Because this.editor doesn't contain generated html content.

Collapse
 
nomikz profile image
nomikz

I've found out how to do that
onUpdate: ({ getHTML }) => {
// get new content on update
const newContent = getHTML()
},

Collapse
 
geoabdrabuh profile image
mohamed Abdrabu

would you please explain to me how to write the content from the text editor to json file because it gives null values