mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: fix editor autocomplete
This commit is contained in:
@@ -176,8 +176,7 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef<
|
||||
insertText = `${Number(number) + 1}. `;
|
||||
}
|
||||
if (insertText) {
|
||||
editorActions.insertText(`\n${insertText}`);
|
||||
event.preventDefault();
|
||||
editorActions.insertText(insertText);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user