diff --git a/src/components/Editor/MarkdownContentEditor.vue b/src/components/Editor/MarkdownContentEditor.vue index f7d8c09a588..68f95ff3ce6 100644 --- a/src/components/Editor/MarkdownContentEditor.vue +++ b/src/components/Editor/MarkdownContentEditor.vue @@ -123,6 +123,10 @@ export default { } }, + updated() { + this.$editor.setEditable(!this.readOnly) + }, + beforeDestroy() { this.$editor.destroy() },