Fix tinymce component input watch wrong
Fix tinymce component input watch wrong
This commit is contained in:
commit
3a1e103ead
|
@ -48,7 +48,8 @@ export default {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
value(val) {
|
value(val) {
|
||||||
if (!this.hasChange && this.hasInit) {
|
if (val == null) {val = ''}
|
||||||
|
if (this.hasInit) {
|
||||||
this.$nextTick(() => window.tinymce.get(this.tinymceId).setContent(val))
|
this.$nextTick(() => window.tinymce.get(this.tinymceId).setContent(val))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue