Skip to content

Commit

Permalink
Always set the value
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 14, 2017
1 parent 89a8e21 commit 898bcc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions Modules/Core/Assets/js/components/CkEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@
},
watch: {
value (val) {
let html = this.instance.getData()
if (val !== html) {
this.instance.setData(val, null, true)
}
this.instance.setData(val, null, true);
}
},
mounted () {
Expand Down
6 changes: 2 additions & 4 deletions public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -69310,6 +69310,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
//
//

// Source: https://github.com/dangvanthanh/vue-ckeditor2
var inc = 0;
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'vue-ckeditor',
Expand Down Expand Up @@ -69351,10 +69352,7 @@ var inc = 0;
},
watch: {
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() {
Expand Down

0 comments on commit 898bcc6

Please sign in to comment.