Vue tinymce富文本数据回显不了问题

时间:2025-02-15 07:51:58

在查看编辑富文本tinymce的时候,数据回显不了出现空白bug问题

<tinymce  v-model=""/>

解决方案:
对tinymce 标签添加ref,然后通过.setContent 方法进行赋值


//HTML
<tinymce ref="tinymceReft" v-model=""/>
 
 
//JS
this.$nextTick(()=>{
   this.$('xxxx')