<template>
<div>
<textarea style="display:none" ,function(){
_this.editor.getContent()
_this.$parent._data.htmlDefaultMsg = _this.editor.getContent()
});
},
methods: {
getUEContent () { // 获取内容方法
this.$parent._data.htmlDefaultMsg = this.editor.getContent()
return this.editor.getContent()
},
setUEContent (Msg) { // 设置内容方法
return this.editor.setContent(Msg)
},
getContentTxt () { // 获取纯文本内容方法
return this.editor.getContentTxt()
},
},
destroyed () {
this.editor.destroy()
}
}
</script>
相关文章: