import React from "react"; import JoditEditor from "jodit-react"; import { IRichText } from "./types"; import { Text } from "../../components/typography/Typography"; export const RichText: React.FC = ({ title, editor, value, config, setContent, tabIndex, className, ...attr }) => { return (
{title} setContent(newContent)} // preferred to use only this option to update the content for performance reasons onChange={content => setContent(content)} {...attr} />
); };