import React, { useState } from "react"; import { Card, Row, Col } from "antd"; import { EditorState, convertToRaw } from "draft-js"; import { Editor } from "react-draft-wysiwyg"; import draftToHtml from "draftjs-to-html"; import draftToMarkdown from "draftjs-to-markdown"; import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css"; import "./index.less"; const RichTextEditor = () => { const [editorState, setEditorState] = useState(EditorState.createEmpty()); const onEditorStateChange = (editorState) => setEditorState(editorState); return (