mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: add lodash-es package
This commit is contained in:
@ -175,11 +175,6 @@ const MemoEditor: React.FC<Props> = () => {
|
||||
}, []);
|
||||
|
||||
const handleContentChange = useCallback((content: string) => {
|
||||
const tempDiv = document.createElement("div");
|
||||
tempDiv.innerHTML = content;
|
||||
if (tempDiv.innerText.trim() === "") {
|
||||
content = "";
|
||||
}
|
||||
setEditorContentCache(content);
|
||||
|
||||
if (editorRef.current) {
|
||||
|
Reference in New Issue
Block a user