优化Editor

master
LiuJiaNan 2025-12-20 09:55:48 +08:00
parent 328cdea8b7
commit d53fc410f9
1 changed files with 1 additions and 1 deletions

View File

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