vue-tinymce-editor icon indicating copy to clipboard operation
vue-tinymce-editor copied to clipboard

content of editor is empty when mounted

Open kazusa0106 opened this issue 6 years ago • 4 comments

code: image after click the button: image

but this works image image

so I must set the content after mounted ?

kazusa0106 avatar Jul 05 '18 04:07 kazusa0106

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?

Andre0711er avatar Jul 23 '18 09:07 Andre0711er

I have the same problem too.

davutkara avatar Aug 31 '18 15:08 davutkara

I have this problem too

AndreiSoroka avatar Sep 06 '18 21:09 AndreiSoroka

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); } } `

DavidMente avatar May 11 '19 12:05 DavidMente