vue-tinymce-editor
vue-tinymce-editor copied to clipboard
content of editor is empty when mounted
code:
after click the button:
but this works
so I must set the content after mounted ?
Hi.
I have the same problem. If I using "mounted", i need to add a timeout from 1000 ms before loading content to correctly visible in TinyMCE Editor.
Is this a bug?
I have the same problem too.
I have this problem too
I listen to the editorInit event and set content afterwards. That seems to work reliably:
` <tinymce :id="id" :toolbar1="toolbar1" :plugins="plugins" :other_options=other_options v-model="value" @editorInit="editorInit" ref="tm" >
...
methods: { editorInit() { this.$refs.tm.editor.setContent(this.value); } } `