diff --git a/io.sc.platform.core.frontend/src/platform/components/code-mirror/WCodeMirror.vue b/io.sc.platform.core.frontend/src/platform/components/code-mirror/WCodeMirror.vue index c00168ec..8f578bc2 100644 --- a/io.sc.platform.core.frontend/src/platform/components/code-mirror/WCodeMirror.vue +++ b/io.sc.platform.core.frontend/src/platform/components/code-mirror/WCodeMirror.vue @@ -12,7 +12,6 @@ :rules="FieldMethods.getRules(props, modelValue, fieldRef, undefined)" :readonly="FieldMethods.getReadOnly(props, modelValue)" :disable="FieldMethods.getDisable(props, modelValue)" - @update:model-value="fieldMethodsClass.updateValue" @focus.stop.prevent="focus" @blur.stop.prevent="blur" > @@ -271,6 +270,7 @@ onMounted(() => { content = content.replace(/[\r\n]/g, ''); } editorView.dispatch({ changes: { from: 0, to: editorView.state.doc.length, insert: content } }); + fieldMethodsClass.updateValue(content); } }, );