We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1ef8a commit 5bc3c90Copy full SHA for 5bc3c90
src/components/Editor/src/Editor.vue
@@ -58,6 +58,16 @@ watch(
58
emit('update:modelValue', val)
59
}
60
)
61
+watch(
62
+ () => props.readonly,
63
+ (val) => {
64
+ if (val) {
65
+ editorRef.value?.disable()
66
+ } else {
67
+ editorRef.value?.enable()
68
+ }
69
70
+)
71
72
const handleCreated = (editor: IDomEditor) => {
73
editorRef.value = editor
0 commit comments