follow PanJiaChen's advice

This commit is contained in:
Insua 2018-06-01 14:53:05 +08:00 committed by GitHub
parent ba00a013bc
commit e7a2bd7794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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