@@ -8,6 +8,6 @@ | |||
</head> | |||
<body> | |||
<div id="root"></div> | |||
<script src="/umi.8c0465bb.js"></script> | |||
<script src="/umi.2d388095.js"></script> | |||
</body> | |||
</html> |
@@ -9,7 +9,7 @@ type RichModelProps = { | |||
import he from 'he'; | |||
const RichComponent: React.FC<RichModelProps> = ({ defaultValue,placeholder, onChange }) => { | |||
const [editorValue, setEditorValue] = useState(he.decode(defaultValue)); | |||
const [editorValue, setEditorValue] = useState(defaultValue ? he.decode(defaultValue) : defaultValue); | |||
const handleChange = (content) => { | |||
setEditorValue(content); |