|
@@ -79,7 +79,7 @@
|
|
});
|
|
});
|
|
|
|
|
|
_value = formattedCode;
|
|
_value = formattedCode;
|
|
- onChange({ value: _value });
|
|
|
|
|
|
+ onChange(_value);
|
|
await tick();
|
|
await tick();
|
|
|
|
|
|
toast.success($i18n.t('Code formatted successfully'));
|
|
toast.success($i18n.t('Code formatted successfully'));
|
|
@@ -98,7 +98,7 @@
|
|
EditorView.updateListener.of((e) => {
|
|
EditorView.updateListener.of((e) => {
|
|
if (e.docChanged) {
|
|
if (e.docChanged) {
|
|
_value = e.state.doc.toString();
|
|
_value = e.state.doc.toString();
|
|
- onChange({ value: _value });
|
|
|
|
|
|
+ onChange(_value);
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
editorTheme.of([]),
|
|
editorTheme.of([]),
|