lanjianrong 3 năm trước cách đây
mục cha
commit
bbc0c23414
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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