add watchDoc prop to editor

This commit is contained in:
Philipp Kühn
2018-10-10 18:21:33 +02:00
parent a648d858b1
commit 9d94d49112
2 changed files with 8 additions and 1 deletions

View File

@@ -32,6 +32,10 @@ export default {
type: Boolean,
default: true,
},
watchDoc: {
type: Boolean,
default: true,
},
},
data() {
@@ -61,7 +65,9 @@ export default {
doc: {
deep: true,
handler() {
this.setContent(this.doc, true)
if (this.watchDoc) {
this.setContent(this.doc, true)
}
},
},