diff --git a/src/renderer/components/BaseTextEditor.vue b/src/renderer/components/BaseTextEditor.vue index f9caa020..09e2945b 100644 --- a/src/renderer/components/BaseTextEditor.vue +++ b/src/renderer/components/BaseTextEditor.vue @@ -45,7 +45,7 @@ watch(() => props.mode, () => { }); watch(() => props.modelValue, () => { - if (editor) + if (editor && props.readOnly) editor.session.setValue(props.modelValue); });