From 523c866b07826a6401e2e1bfad233f243080daee Mon Sep 17 00:00:00 2001 From: Aleksandar Petkov Date: Wed, 30 Aug 2023 17:07:49 +0300 Subject: [PATCH] [TEMP]: Drop mxeditor for now (#1574) Until we figure out why its chunk is not found... --- src/components/common/form/FormRichTextField.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/common/form/FormRichTextField.tsx b/src/components/common/form/FormRichTextField.tsx index 37ab353c9..226c64d36 100644 --- a/src/components/common/form/FormRichTextField.tsx +++ b/src/components/common/form/FormRichTextField.tsx @@ -7,7 +7,7 @@ import { translateError } from 'common/form/useForm' import { TranslatableField } from 'common/form/validation' import { styled } from '@mui/material/styles' -import { ModernEditor } from './MDXEditor' +// import { ModernEditor } from './MDXEditor' import { QuillEditor } from './QuillEditor' export type FormRichTextFieldProps = { @@ -33,7 +33,7 @@ export default function FormRichTextField({ name }: FormRichTextFieldProps) { const { t } = useTranslation() const [, meta] = useField(name) const helperText = meta.touched ? translateError(meta.error as TranslatableField, t) : '' - const [useMdxEditor, setUseMdxEditor] = React.useState(true) + const [useMdxEditor, setUseMdxEditor] = React.useState(false) return (
@@ -46,7 +46,7 @@ export default function FormRichTextField({ name }: FormRichTextFieldProps) { {({ field }: { field: FieldInputProps }) => ( - + {/* - + */} {useMdxEditor ? ( - <> - - + <>{/* */} ) : ( )}