1👍
How will the generatedText be generated? Through tiptap?
The v-model of tiptap is the editor.content value. You could give it an initial state but if you want to change the editor.content after some interaction with the wysiwyg (like onFocus) you could use: setContent
Or maybe this helps:
Listening for changes
- [Vuejs]-How can I limit the width of the v-data-table column?
- [Vuejs]-How to assign ajax response to data element with vuejs
0👍
I watched for the editor, then set the content:
import { watch } from 'vue'
import { useEditor } from '@tiptap/vue-3'
const editor = useEditor({
content: ''
})
watch(editor, () => {
editor?.value?.commands.setContent('<p>Hi Mars</p>')
})
- [Vuejs]-Typing HTML Attributes in Vue 3 with TypeScript
- [Vuejs]-Receiving an array then using a v-for to display results on multiple <select></select> A click on one option changes all other option values
Source:stackexchange.com