优化Editor

master
LiuJiaNan 2025-12-20 10:09:07 +08:00
parent 85731d9f72
commit fab956edc3
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ const Editor = forwardRef(({
const handleChange = (editor) => { const handleChange = (editor) => {
setHtml(editor.getHtml()); setHtml(editor.getHtml());
onChange?.(normalizeEmptyHtml(editor.getHtml()) || " "); onChange?.(normalizeEmptyHtml(editor.getHtml()));
}; };
// 工具栏配置 // 工具栏配置