mirror of
https://github.com/usememos/memos.git
synced 2025-11-08 08:21:49 +08:00
fix: checklist auto continuation (#737)
This commit is contained in:
parent
5e978e2cfc
commit
3fd4ee83ac
1 changed files with 2 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ import ResourceIcon from "./ResourceIcon";
|
|||
import showResourcesSelectorDialog from "./ResourcesSelectorDialog";
|
||||
import "../less/memo-editor.less";
|
||||
|
||||
const listItemSymbolList = ["* ", "- ", "- [ ] ", "- [x] ", "- [X] "];
|
||||
const listItemSymbolList = ["- [ ] ", "- [x] ", "- [X] ", "* ", "- "];
|
||||
|
||||
const getEditorContentCache = (): string => {
|
||||
return storage.get(["editorContentCache"]).editorContentCache ?? "";
|
||||
|
|
@ -132,6 +132,7 @@ const MemoEditor = () => {
|
|||
if (rowValue.startsWith(listItemSymbol)) {
|
||||
event.preventDefault();
|
||||
editorRef.current.insertText("", `\n${listItemSymbol}`);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue