strapi-plugin-wysiwyg-react-md-editor
Version:
Replaces the default Strapi WYSIWYG editor with react md editor.
29 lines (28 loc) • 692 B
TypeScript
import "@uiw/react-md-editor/markdown-editor.css";
import "@uiw/react-markdown-preview/markdown.css";
import { FC as FunctionComponent } from "react";
interface FieldProps {
name: string;
onChange: (e: {
target: {
name: string;
value: string;
};
}) => void;
value: string;
intlLabel: {
id: string;
defaultMessage: string;
};
disabled?: boolean;
error?: string;
description?: {
id: string;
defaultMessage: string;
};
required?: boolean;
attribute?: any;
labelAction?: React.ReactNode;
}
declare const CustomField: FunctionComponent<FieldProps>;
export { CustomField };