chore: add placeholder to comment editor

This commit is contained in:
Steven
2024-04-09 20:01:19 +08:00
parent 8356ebc46b
commit bbdd40b2b0
24 changed files with 26 additions and 26 deletions

View File

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