Updating CkEditor component with upstream changes

parent 4a218171
......@@ -12,7 +12,7 @@
<script>
// Source: https://github.com/dangvanthanh/vue-ckeditor2
let inc = 0
let inc = new Date().getTime();
export default {
name: 'vue-ckeditor',
props: {
......@@ -46,9 +46,11 @@
},
watch: {
value (val) {
let html = this.instance.getData();
if (val !== html) {
this.instance.setData(val);
if (this.instance) {
let html = this.instance.getData();
if (val !== html) {
this.instance.setData(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