Always set the value

parent 89a8e21b
...@@ -46,10 +46,7 @@ ...@@ -46,10 +46,7 @@
}, },
watch: { watch: {
value (val) { value (val) {
let html = this.instance.getData() this.instance.setData(val, null, true);
if (val !== html) {
this.instance.setData(val, null, true)
}
} }
}, },
mounted () { mounted () {
......
...@@ -69310,6 +69310,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); ...@@ -69310,6 +69310,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
// //
// //
// Source: https://github.com/dangvanthanh/vue-ckeditor2
var inc = 0; var inc = 0;
/* harmony default export */ __webpack_exports__["default"] = ({ /* harmony default export */ __webpack_exports__["default"] = ({
name: 'vue-ckeditor', name: 'vue-ckeditor',
...@@ -69351,11 +69352,8 @@ var inc = 0; ...@@ -69351,11 +69352,8 @@ var inc = 0;
}, },
watch: { watch: {
value: function value(val) { value: function value(val) {
var html = this.instance.getData();
if (val !== html) {
this.instance.setData(val, null, true); this.instance.setData(val, null, true);
} }
}
}, },
mounted: function mounted() { mounted: function mounted() {
var _this = this; var _this = this;
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