mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: upgrade version to v0.14.0
(#1970)
* chore: upgrade version * chore: update * chore: update
This commit is contained in:
@ -7,8 +7,7 @@ import { getMatchedNodes } from "@/labs/marked";
|
||||
import { upsertMemoResource } from "@/helpers/api";
|
||||
import { TAB_SPACE_WIDTH, UNKNOWN_ID } from "@/helpers/consts";
|
||||
import { useFilterStore, useGlobalStore, useMemoStore, useResourceStore, useTagStore, useUserStore } from "@/store/module";
|
||||
import storage from "@/helpers/storage";
|
||||
import { clearContentQueryParam, getContentQueryParam } from "@/helpers/utils";
|
||||
import { clearContentQueryParam } from "@/helpers/utils";
|
||||
import Icon from "../Icon";
|
||||
import Editor, { EditorRefActions } from "./Editor";
|
||||
import showCreateResourceDialog from "../CreateResourceDialog";
|
||||
@ -21,10 +20,6 @@ import "@/less/memo-editor.less";
|
||||
const listItemSymbolList = ["- [ ] ", "- [x] ", "- [X] ", "* ", "- "];
|
||||
const emptyOlReg = /^(\d+)\. $/;
|
||||
|
||||
const getInitialContent = (): string => {
|
||||
return getContentQueryParam() ?? storage.get(["editorContentCache"]).editorContentCache ?? "";
|
||||
};
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
memoId?: MemoId;
|
||||
@ -377,7 +372,7 @@ const MemoEditor = (props: Props) => {
|
||||
const editorConfig = useMemo(
|
||||
() => ({
|
||||
className: `memo-editor`,
|
||||
initialContent: getInitialContent(),
|
||||
initialContent: "",
|
||||
placeholder: t("editor.placeholder"),
|
||||
fullscreen: state.fullscreen,
|
||||
onContentChange: handleContentChange,
|
||||
|
Reference in New Issue
Block a user