mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: add placeholder to comment editor
This commit is contained in:
@ -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,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user