Skip to content

Commit

Permalink
Disable MDXEditor integration
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Sep 30, 2023
1 parent 2be4d49 commit effd063
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/common/form/FormRichTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div>
Expand All @@ -47,6 +49,7 @@ export default function FormRichTextField({ name }: FormRichTextFieldProps) {
<Field name={name}>
{({ field }: { field: FieldInputProps<string> }) => (
<StyledGrid>
{/*
<EditorSwitch>
<label>
<input
Expand All @@ -69,6 +72,7 @@ export default function FormRichTextField({ name }: FormRichTextFieldProps) {
{t('campaigns:campaign.rte.classic')}
</label>
</EditorSwitch>
*/}

{useMdxEditor ? (
<>
Expand Down

0 comments on commit effd063

Please sign in to comment.