How to remove editor content and not let it stay after submitting a form? #818
Unanswered
darrylferdinands
asked this question in
Questions & Help
Replies: 1 comment
-
Try to reset the content. Using v-model it probably works like that: this.oppInEditing.qualifications = null; I’ve never used it like that, so I would use the Editor instance to set the content there: this.editor.setContent(null); Here is a CodeSandbox demonstrating the behaviour: https://codesandbox.io/s/vue-issue-template-forked-12p7z?file=/src/App.vue Hope that helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use tiptap with a form like this :
<TipTapForm v-model="oppInEditing.qualifications"/>
However, when I submit the form, the content does not get destroyed in the editor and stays there. What should I do here to make the content not stay there after I have finished submitting the form?
Beta Was this translation helpful? Give feedback.
All reactions