Skip to content

Commit

Permalink
Merge pull request #5549 from nextcloud/fix/5548-markdown-editor-does…
Browse files Browse the repository at this point in the history
…nt-update-readonly

update editor on readOnlyprop change
  • Loading branch information
mejo- authored Mar 25, 2024
2 parents dc3f642 + 9885881 commit ecfda4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Editor/MarkdownContentEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ export default {
}
},

updated() {
this.$editor.setEditable(!this.readOnly)
},

beforeDestroy() {
this.$editor.destroy()
},
Expand Down

0 comments on commit ecfda4c

Please sign in to comment.