Commit 60d1b0bf authored by 徐俊's avatar 徐俊

xujun

parent fec1cdcb
...@@ -118,7 +118,10 @@ export default { ...@@ -118,7 +118,10 @@ export default {
if (!!val && !this.hasChange) { if (!!val && !this.hasChange) {
this.$nextTick(() => { this.$nextTick(() => {
this.hasChange = true this.hasChange = true
window.tinymce.get(this.id).setContent(val) const editor = window.tinymce.get(this.id)
if (editor) {
editor.setContent(val)
}
}) })
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment