fix(Tinymce): When content is null,set content to '' to avoid error

This commit is contained in:
insua 2018-06-01 14:28:45 +08:00
parent 31d9da8b9f
commit 0a1c9203d1
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ export default {
watch: {
value(val) {
if (!this.hasChange && this.hasInit) {
if(val === null) val = ''
this.$nextTick(() => window.tinymce.get(this.tinymceId).setContent(val))
}
}