From effd063f0f9a763d749ff97be1e4c7ce0d348650 Mon Sep 17 00:00:00 2001 From: Petyo Ivanov Date: Sat, 30 Sep 2023 09:45:06 +0300 Subject: [PATCH] Disable MDXEditor integration --- src/components/common/form/FormRichTextField.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/common/form/FormRichTextField.tsx b/src/components/common/form/FormRichTextField.tsx index 1f6b4ce0b..729d496c3 100644 --- a/src/components/common/form/FormRichTextField.tsx +++ b/src/components/common/form/FormRichTextField.tsx @@ -34,7 +34,9 @@ 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) + // disabling MDXEditor integration. + // The markdown syntax does not support requirements like image and text alignment, colors, etc. + const [useMdxEditor, setUseMdxEditor] = React.useState(false) return (
@@ -47,6 +49,7 @@ export default function FormRichTextField({ name }: FormRichTextFieldProps) { {({ field }: { field: FieldInputProps }) => ( + {/* + */} {useMdxEditor ? ( <>