|
|
@ -31,6 +31,7 @@ import { MemoEditorContext } from "./types";
|
|
|
|
interface Props {
|
|
|
|
interface Props {
|
|
|
|
className?: string;
|
|
|
|
className?: string;
|
|
|
|
cacheKey?: string;
|
|
|
|
cacheKey?: string;
|
|
|
|
|
|
|
|
placeholder?: string;
|
|
|
|
memoName?: string;
|
|
|
|
memoName?: string;
|
|
|
|
parentMemoName?: string;
|
|
|
|
parentMemoName?: string;
|
|
|
|
relationList?: MemoRelation[];
|
|
|
|
relationList?: MemoRelation[];
|
|
|
@ -374,7 +375,7 @@ const MemoEditor = (props: Props) => {
|
|
|
|
() => ({
|
|
|
|
() => ({
|
|
|
|
className: "",
|
|
|
|
className: "",
|
|
|
|
initialContent: "",
|
|
|
|
initialContent: "",
|
|
|
|
placeholder: t("editor.placeholder"),
|
|
|
|
placeholder: props.placeholder ?? t("editor.any-thoughts"),
|
|
|
|
onContentChange: handleContentChange,
|
|
|
|
onContentChange: handleContentChange,
|
|
|
|
onPaste: handlePasteEvent,
|
|
|
|
onPaste: handlePasteEvent,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|