lanjianrong 3 년 전
부모
커밋
bbc0c23414
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/pages/Business/Notification/components/RighEditor.tsx

+ 2 - 2
src/pages/Business/Notification/components/RighEditor.tsx

@@ -9,9 +9,9 @@ const mdParser = new MarkdownIt()
 const RighEditor = ({ value, onChange }) => {
   const [cValue, setValue] = useState(value)
   // 完成!
-  function handleEditorChange({ text }) {
+  function handleEditorChange({ text, html }) {
     setValue(text)
-    onChange(text)
+    onChange(JSON.stringify(html))
   }
   return (
     <MdEditor