//预览
<div class="htmlViewBox">
<p v-html="activity_html_defaultMsg" v-show="htmlDefaultMsg"></p>
<p v-show="defaultMsg=='' && htmlDefaultMsg==''">请在富文本编辑器内容</p>
</div>
//编辑器
<UE id="myEditor" :defaultMsg=defaultMsg :config=config ref="ue"></UE>
//处理单个图片上传必能立即自动预览的问题
watch: {
'activity_html_defaultMsg':{
handler (val,oldVal) {
let _this = this
let aImgUpload = 'src="/static/UE/themes/default/images/spacer.gif"'
if(val.indexOf(aImgUpload) >-1){
clearTimeout(timer);
let timer = setTimeout(function(){
_this.$refs.ue.getUEContent()
},1000)
}
},
deep: true
},
}