Merge pull request #4873 from kadirboylu/master

Fix #4872: Editor's readonly prop does not react to any changes
pull/4879/head
Tuğçe Küçükoğlu 2023-11-24 11:37:33 +03:00 committed by GitHub
commit 4b322a708b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,9 @@ export default {
this.reRenderColorKey++;
this.renderValue(newValue);
}
},
readonly() {
this.handleReadOnlyChange();
}
},
mounted() {
@ -165,6 +168,9 @@ export default {
if (this.quill && this.quill.getModule('toolbar')) {
this.$emit('load', { instance: this.quill });
}
},
handleReadOnlyChange() {
if (this.quill) this.quill.enable(!this.readonly);
}
}
};