lanjianrong 3 лет назад
Родитель
Сommit
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