diff --git a/components/Editor/index.js b/components/Editor/index.js index 9eb62b6..e47671a 100644 --- a/components/Editor/index.js +++ b/components/Editor/index.js @@ -53,7 +53,7 @@ const Editor = forwardRef(({ const handleChange = (editor) => { setHtml(editor.getHtml()); - onChange?.(normalizeEmptyHtml(editor.getHtml())); + onChange?.(normalizeEmptyHtml(editor.getHtml()) || " "); }; // 工具栏配置