fix: codeblock
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
});
|
||||
|
||||
_value = formattedCode;
|
||||
onChange({ value: _value });
|
||||
onChange(_value);
|
||||
await tick();
|
||||
|
||||
toast.success($i18n.t('Code formatted successfully'));
|
||||
@@ -98,7 +98,7 @@
|
||||
EditorView.updateListener.of((e) => {
|
||||
if (e.docChanged) {
|
||||
_value = e.state.doc.toString();
|
||||
onChange({ value: _value });
|
||||
onChange(_value);
|
||||
}
|
||||
}),
|
||||
editorTheme.of([]),
|
||||
|
||||
Reference in New Issue
Block a user