Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

feat: support styled note attachments

tianma-ifd0c7d83a8277
diff --git a/README.md b/README.md
index 1370c013..b76e0f22 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ The public demo resets every Monday at 1:00 AM (China Standard Time) and restore
## Features
-- Serverless, 100% free, and zero maintenance: Built on Cloudflare's Serverless architecture, running entirely within free tiers. Store up to 150k notes and 50k images without any hosting fees, while enjoying near-instant response times globally.
+- Serverless, 100% free, and zero maintenance: Built on Cloudflare's Serverless architecture, running entirely within free tiers. Store up to 150k notes and 50k images or other attachments without any hosting fees, while enjoying near-instant response times globally.
- Open data: notes are stored in Cloudflare D1, based on standard SQLite, and can be read and managed through REST API, MCP, and CLI without locking your data to a single notes product.
- EdgeEver ZIP import and export: one archive combines human-readable Markdown, Front Matter, nested notebook structure, and relative-path attachments with versioned structured data and revision history for complete recovery between EdgeEver instances.
- AI Agent friendly: built-in MCP support lets tools such as Codex, Claude Code, and Antigravity read, organize, and maintain notes, while enabling integrations with Notion databases and Feishu Bitable.
@@ -44,6 +44,7 @@ The public demo resets every Monday at 1:00 AM (China Standard Time) and restore
- Mermaid diagrams rendered from standard fenced code blocks on the Web and native app, with editable source preserved across rich text and Markdown views.
- Note version history for reviewing previous content changes.
- Local browser-side image compression before upload, often reducing screenshots and large photos by about 50%-90%.
+- Upload and insert general file attachments such as PDFs, office documents, archives, audio, and video into notes.
- Batch note merging.
- Batch note moving, notebook drag sorting, and hierarchy editing.
- Offline drafts and local sync queue for existing notes.
diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts
index f17f6220..20fdb4a8 100644
--- a/apps/api/src/index.ts
+++ b/apps/api/src/index.ts
@@ -2147,7 +2147,7 @@ const validateImageUpload = (mimeType: string, size: number) => {
const validateAttachmentUpload = (size: number) => {
if (size <= 0 || size > MAX_ATTACHMENT_UPLOAD_BYTES) {
- throw new AppError("upload_too_large", "Attachment must be between 1 byte and 50 MB.", 413);
+ throw new AppError("upload_too_large", "Attachment must be between 1 byte and 100 MB.", 413);
}
};
@@ -2206,7 +2206,12 @@ app.get("/api/v1/resources/:id/blob", async (c) => {
headers.set("Content-Type", resource.mime_type ?? headers.get("Content-Type") ?? "application/octet-stream");
headers.set("Cache-Control", headers.get("Cache-Control") ?? "private, max-age=3600");
headers.set("Content-Length", String(object.size));
- headers.set("Content-Disposition", contentDispositionInline(resource.filename));
+ headers.set(
+ "Content-Disposition",
+ resource.kind === "image"
+ ? contentDispositionInline(resource.filename)
+ : contentDispositionAttachment(resource.filename)
+ );
headers.set("X-Content-Type-Options", "nosniff");
return new Response(object.body, { headers });
@@ -6482,6 +6487,15 @@ const contentDispositionInline = (filename: string | null) => {
return `inline; filename="${fallback}"; filename*=UTF-8''${encodeURIComponent(filename)}`;
};
+const contentDispositionAttachment = (filename: string | null) => {
+ if (!filename) {
+ return "attachment";
+ }
+
+ const fallback = normalizeFilename(filename).replace(/"/g, "'");
+ return `attachment; filename="${fallback}"; filename*=UTF-8''${encodeURIComponent(filename)}`;
+};
+
const decodeTagParam = (value: string) => {
try {
return decodeURIComponent(value).trim();
diff --git a/apps/mobile/src/components/LocalTiptapEditor.tsx b/apps/mobile/src/components/LocalTiptapEditor.tsx
index 3f5af6a6..e0a30014 100644
--- a/apps/mobile/src/components/LocalTiptapEditor.tsx
+++ b/apps/mobile/src/components/LocalTiptapEditor.tsx
@@ -45,6 +45,7 @@ export interface LocalTiptapEditorRef extends DOMImperativeFactory {
beginImageUpload: (uploadId: DOMValue, previewDataUrl: DOMValue) => void;
cancelImageUpload: (uploadId: DOMValue) => void;
completeImageUpload: (uploadId: DOMValue, imageUrl: DOMValue, alt: DOMValue) => void;
+ appendAttachment: (attachmentUrl: DOMValue, filename: DOMValue) => void;
flush: () => void;
focusEnd: () => void;
replaceAll: (query: DOMValue, replacement: DOMValue) => void;
@@ -364,18 +365,41 @@ function LocalTiptapEditorImpl(props: LocalTiptapEditorProps) {
);
}, [editor, props.baseUrl]);
+ const appendAttachment = useCallback((attachmentUrlValue: DOMValue, filenameValue: DOMValue) => {
+ if (!editor || typeof attachmentUrlValue !== "string" || typeof filenameValue !== "string") {
+ return;
+ }
+
+ editor.chain().focus().insertContent({
+ type: "paragraph",
+ content: [{
+ type: "text",
+ text: `附件:${filenameValue}`,
+ marks: [{
+ type: "link",
+ attrs: {
+ href: resolveUrl(attachmentUrlValue, props.baseUrl),
+ target: "_blank",
+ class: "edgeever-attachment-link",
+ },
+ }],
+ }],
+ }).run();
+ }, [editor, props.baseUrl]);
+
useDOMImperativeHandle(
props.ref,
() => ({
beginImageUpload,
cancelImageUpload,
completeImageUpload,
+ appendAttachment,
flush,
focusEnd: () => editor?.commands.focus("end"),
replaceAll,
search,
}),
- [beginImageUpload, cancelImageUpload, completeImageUpload, editor, flush, replaceAll, search]
+ [appendAttachment, beginImageUpload, cancelImageUpload, completeImageUpload, editor, flush, replaceAll, search]
);
useEffect(() => {
diff --git a/apps/mobile/src/screens/WorkspaceScreen.tsx b/apps/mobile/src/screens/WorkspaceScreen.tsx
index c6fdb79a..ca097385 100644
--- a/apps/mobile/src/screens/WorkspaceScreen.tsx
+++ b/apps/mobile/src/screens/WorkspaceScreen.tsx
@@ -2263,31 +2263,38 @@ const CreateMemoModal = ({
const result = await DocumentPicker.getDocumentAsync({
copyToCacheDirectory: true,
multiple: false,
- type: ["image/*"],
+ type: "*/*",
});
const asset = result.canceled ? null : result.assets[0];
if (!asset) {
return;
}
- uploadId = createMobileImageUploadId();
- const previewDataUrl = await createLocalImagePreviewDataUrl(asset);
- editorRef.current?.beginImageUpload(uploadId, previewDataUrl);
+ const isImage = asset.mimeType?.startsWith("image/") ?? false;
+ if (isImage) {
+ uploadId = createMobileImageUploadId();
+ const previewDataUrl = await createLocalImagePreviewDataUrl(asset);
+ editorRef.current?.beginImageUpload(uploadId, previewDataUrl);
+ }
const memo = await materializeMemoForImage();
setImageOperation("uploading");
const uploadAsset = await prepareUploadAsset(asset, imageCompressionEnabled);
const form = new FormData();
form.append("file", new ExpoFile(uploadAsset.uri));
const { resource } = await client!.uploadMemoResource(memo.id, form);
- editorRef.current?.completeImageUpload(
- uploadId,
- resource.url,
- resource.filename || uploadAsset.name || "图片"
- );
+ if (resource.kind === "image" && uploadId) {
+ editorRef.current?.completeImageUpload(
+ uploadId,
+ resource.url,
+ resource.filename || uploadAsset.name || "图片"
+ );
+ } else {
+ editorRef.current?.appendAttachment(resource.url, resource.filename || uploadAsset.name || "附件");
+ }
} catch (error) {
if (uploadId) {
editorRef.current?.cancelImageUpload(uploadId);
}
- Alert.alert("图片上传失败", error instanceof Error ? error.message : "请检查网络连接后重试");
+ Alert.alert("附件上传失败", error instanceof Error ? error.message : "请检查网络连接后重试");
} finally {
setImageOperation("idle");
}
@@ -4549,32 +4556,39 @@ const RichEditorModal = ({
const result = await DocumentPicker.getDocumentAsync({
copyToCacheDirectory: true,
multiple: false,
- type: ["image/*"],
+ type: "*/*",
});
const asset = result.canceled ? null : result.assets[0];
if (!asset) {
return;
}
- const uploadId = createMobileImageUploadId();
+ const isImage = asset.mimeType?.startsWith("image/") ?? false;
+ const uploadId = isImage ? createMobileImageUploadId() : null;
uploadingRef.current = true;
setUploading(true);
setError(null);
try {
- const previewDataUrl = await createLocalImagePreviewDataUrl(asset);
- editorRef.current?.beginImageUpload(uploadId, previewDataUrl);
+ if (isImage && uploadId) {
+ const previewDataUrl = await createLocalImagePreviewDataUrl(asset);
+ editorRef.current?.beginImageUpload(uploadId, previewDataUrl);
+ }
const uploadAsset = await prepareUploadAsset(asset, imageCompressionEnabled);
const form = new FormData();
form.append("file", new ExpoFile(uploadAsset.uri));
const { resource } = await client.uploadMemoResource(memo.id, form);
- editorRef.current?.completeImageUpload(
- uploadId,
- resource.url,
- resource.filename || uploadAsset.name || "图片"
- );
+ if (resource.kind === "image" && uploadId) {
+ editorRef.current?.completeImageUpload(
+ uploadId,
+ resource.url,
+ resource.filename || uploadAsset.name || "图片"
+ );
+ } else {
+ editorRef.current?.appendAttachment(resource.url, resource.filename || uploadAsset.name || "附件");
+ }
} catch (uploadError) {
editorRef.current?.cancelImageUpload(uploadId);
- setError(uploadError instanceof Error ? uploadError.message : "图片上传失败");
+ setError(uploadError instanceof Error ? uploadError.message : "附件上传失败");
} finally {
uploadingRef.current = false;
setUploading(false);
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsx
index fff2c4c2..7dfbdd20 100644
--- a/apps/web/src/components/EditorPane.tsx
+++ b/apps/web/src/components/EditorPane.tsx
@@ -232,7 +232,7 @@ const getEditorSearchMatches = (editor: Editor | null, query: string): NoteSearc
return getSearchMatchesFromDocument(editor.state.doc, query);
};
-const getImageFilesFromDataTransfer = (dataTransfer: DataTransfer | null) => {
+const getResourceFilesFromDataTransfer = (dataTransfer: DataTransfer | null) => {
if (!dataTransfer) {
return [];
}
@@ -243,7 +243,7 @@ const getImageFilesFromDataTransfer = (dataTransfer: DataTransfer | null) => {
.filter((file): file is File => Boolean(file));
const files = fileItems.length > 0 ? fileItems : Array.from(dataTransfer.files ?? []);
- return files.filter((file) => SUPPORTED_PASTE_IMAGE_TYPES.has(file.type));
+ return files.filter((file) => file.size > 0);
};
const ResizableImageNodeView = ({ editor, node, selected, updateAttributes }: NodeViewProps) => {
@@ -1232,55 +1232,6 @@ const RichEditorPane = ({
}
}, [focusMobileInputTarget, isMobileViewport, memo?.id, mobileDefaultEditMemoId, onMobileDefaultEditConsumed, readOnly]);
- const insertImageFiles = useCallback((files: File[]) => {
- const currentMemo = memoRef.current;
- const currentEditor = editorRef.current;
-
- if (!currentMemo || currentMemo.isDeleted || !currentEditor || !currentEditor.isEditable || files.length === 0) {
- return;
- }
-
- const targetMemoId = currentMemo.id;
-
- void (async () => {
- setImageUploadState("uploading");
-
- try {
- for (const file of files) {
- const shouldCompress = imageCompressionEnabledRef.current;
- setImageUploadState(shouldCompress ? "compressing" : "uploading");
- const uploadFile = shouldCompress ? (await compressImageForUpload(file)).file : file;
-
- setImageUploadState("uploading");
- const { resource } = await api.uploadMemoResource(targetMemoId, uploadFile);
- void queryClient.invalidateQueries({ queryKey: ["resources"] });
-
- const activeEditor = editorRef.current;
- if (memoRef.current?.id !== targetMemoId || !isEditorReady(activeEditor)) {
- setImageUploadState("idle");
- return;
- }
-
- activeEditor
- .chain()
- .focus()
- .setImage({
- src: resource.url,
- alt: file.name,
- title: file.name,
- width: DEFAULT_IMAGE_WIDTH_PERCENT,
- })
- .run();
- }
-
- setImageUploadState("idle");
- } catch {
- setImageUploadState("error");
- window.setTimeout(() => setImageUploadState("idle"), 2200);
- }
- })();
- }, [queryClient]);
-
const insertResourceFiles = useCallback((files: File[]) => {
const currentMemo = memoRef.current;
const currentEditor = editorRef.current;
@@ -1328,7 +1279,14 @@ const RichEditorPane = ({
.focus()
.insertContent({
type: "paragraph",
- content: [{ type: "text", text: t("editor.attachmentInsertText", { filename: resource.filename || file.name, url: resource.url }) }],
+ content: [{
+ type: "text",
+ text: t("editor.attachmentLabel", { filename: resource.filename || file.name }),
+ marks: [{
+ type: "link",
+ attrs: { href: resource.url, target: "_blank", class: "edgeever-attachment-link" },
+ }],
+ }],
})
.run();
}
@@ -1340,7 +1298,7 @@ const RichEditorPane = ({
window.setTimeout(() => setImageUploadState("idle"), 2200);
}
})();
- }, [queryClient]);
+ }, [queryClient, t]);
const editor = useEditor({
extensions: [
@@ -1397,25 +1355,25 @@ const RichEditorPane = ({
return true;
},
handlePaste: (_view, event) => {
- const files = getImageFilesFromDataTransfer(event.clipboardData);
+ const files = getResourceFilesFromDataTransfer(event.clipboardData);
if (files.length === 0) {
return false;
}
event.preventDefault();
- insertImageFiles(files);
+ insertResourceFiles(files);
return true;
},
handleDrop: (_view, event) => {
- const files = getImageFilesFromDataTransfer(event.dataTransfer);
+ const files = getResourceFilesFromDataTransfer(event.dataTransfer);
if (files.length === 0) {
return false;
}
event.preventDefault();
- insertImageFiles(files);
+ insertResourceFiles(files);
return true;
},
},
@@ -2842,6 +2800,7 @@ const RichEditorPane = ({
readOnly={effectiveReadOnly}
markdownMode={useMarkdownSourceEditor}
onMarkdownModeChange={handleMarkdownModeChange}
+ onPickAttachment={() => fileInputRef.current?.click()}
/>
)}
</header>
diff --git a/apps/web/src/components/EditorToolbar.tsx b/apps/web/src/components/EditorToolbar.tsx
index 72163361..7dec5c61 100644
--- a/apps/web/src/components/EditorToolbar.tsx
+++ b/apps/web/src/components/EditorToolbar.tsx
@@ -14,6 +14,7 @@ import {
SquareCode,
Workflow,
Minus,
+ Paperclip,
} from "lucide-react";
import { cn } from "@/lib/utils";
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "@/components/ui/select";
@@ -129,11 +130,13 @@ export const EditorToolbar = ({
readOnly,
markdownMode = false,
onMarkdownModeChange,
+ onPickAttachment,
}: {
editor: Editor | null;
readOnly: boolean;
markdownMode?: boolean;
onMarkdownModeChange?: () => void;
+ onPickAttachment?: () => void;
}) => {
const { t } = useTranslation();
const editorReady = isToolbarEditorReady(editor);
@@ -237,6 +240,18 @@ export const EditorToolbar = ({
<ToolbarDivider />
</>
)}
+ {onPickAttachment && (
+ <>
+ <EditorToolbarButton
+ title={t("editorToolbar.attachment")}
+ disabled={readOnly}
+ onClick={onPickAttachment}
+ >
+ <Paperclip className="h-4 w-4" />
+ </EditorToolbarButton>
+ <ToolbarDivider />
+ </>
+ )}
{markdownMode ? (
<span className="shrink-0 text-xs text-slate-500">{t("editorToolbar.markdownSource")}</span>
) : (
diff --git a/apps/web/src/components/MobileStandaloneTiptapEditor.tsx b/apps/web/src/components/MobileStandaloneTiptapEditor.tsx
index 9d40f74b..59081adc 100644
--- a/apps/web/src/components/MobileStandaloneTiptapEditor.tsx
+++ b/apps/web/src/components/MobileStandaloneTiptapEditor.tsx
@@ -565,28 +565,46 @@ export const MobileStandaloneTiptapEditor = ({
}
};
- const handleImageUpload = async (file?: File | null) => {
+ const handleResourceUpload = async (file?: File | null) => {
const currentMemo = memoRef.current;
if (!currentMemo || !editor || !file) {
return;
}
setError(null);
- setSaveStateStable("compressing");
-
try {
- const uploadFile = (await compressImageForUpload(file)).file;
+ const isImage = file.type.startsWith("image/");
+ setSaveStateStable(isImage ? "compressing" : "uploading");
+ const uploadFile = isImage ? (await compressImageForUpload(file)).file : file;
setSaveStateStable("uploading");
const { resource } = await uploadMobileEditorResource(currentMemo.id, uploadFile);
- editor
- .chain()
- .focus()
- .setImage({
- src: resource.url,
- alt: file.name,
- title: file.name,
- })
- .run();
+ if (resource.kind === "image") {
+ editor
+ .chain()
+ .focus()
+ .setImage({
+ src: resource.url,
+ alt: file.name,
+ title: file.name,
+ })
+ .run();
+ } else {
+ editor
+ .chain()
+ .focus()
+ .insertContent({
+ type: "paragraph",
+ content: [{
+ type: "text",
+ text: `附件:${resource.filename || file.name}`,
+ marks: [{
+ type: "link",
+ attrs: { href: resource.url, target: "_blank", class: "edgeever-attachment-link" },
+ }],
+ }],
+ })
+ .run();
+ }
} catch (uploadError) {
setError(uploadError instanceof Error ? uploadError.message : t("editor.uploadState.fileFailed"));
setSaveStateStable("error");
@@ -921,12 +939,12 @@ export const MobileStandaloneTiptapEditor = ({
<input
ref={imageInputRef}
type="file"
- accept="image/png,image/jpeg,image/gif,image/webp,image/avif"
+ accept="*/*"
hidden
onChange={(event) => {
const file = event.target.files?.[0];
event.target.value = "";
- void handleImageUpload(file);
+ void handleResourceUpload(file);
}}
/>
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index 16296b4f..f396110f 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -222,6 +222,46 @@ textarea {
margin: 0 0 var(--editor-paragraph-spacing);
}
+.ProseMirror a.edgeever-attachment-link,
+.ProseMirror a[href*="/api/v1/resources/"] {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.55rem;
+ max-width: min(100%, 34rem);
+ padding: 0.55rem 0.8rem;
+ border: 1px solid rgb(203 213 225 / 0.9);
+ border-radius: 0.65rem;
+ background: linear-gradient(135deg, rgb(248 250 252), rgb(241 245 249));
+ color: rgb(30 41 59);
+ font-size: 0.875rem;
+ font-weight: 600;
+ line-height: 1.35;
+ text-decoration: none;
+ box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
+ transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
+}
+
+.ProseMirror a.edgeever-attachment-link::before,
+.ProseMirror a[href*="/api/v1/resources/"]::before {
+ content: "📎";
+ flex: 0 0 auto;
+ font-size: 1rem;
+}
+
+.ProseMirror a.edgeever-attachment-link:hover,
+.ProseMirror a[href*="/api/v1/resources/"]:hover {
+ border-color: rgb(16 185 129 / 0.55);
+ background: linear-gradient(135deg, rgb(236 253 245), rgb(240 253 250));
+ box-shadow: 0 3px 10px rgb(15 118 110 / 0.12);
+}
+
+:root.dark .ProseMirror a.edgeever-attachment-link,
+:root.dark .ProseMirror a[href*="/api/v1/resources/"] {
+ border-color: rgb(71 85 105 / 0.8);
+ background: linear-gradient(135deg, rgb(30 41 59), rgb(15 23 42));
+ color: rgb(226 232 240);
+}
+
.ProseMirror ul,
.ProseMirror ol {
padding-left: 1.5rem;
diff --git a/docs/openapi.json b/docs/openapi.json
index 0534d303..31b78d8f 100644
--- a/docs/openapi.json
+++ b/docs/openapi.json
@@ -929,8 +929,8 @@
}
],
"post": {
- "summary": "Upload image resource for memo",
- "description": "Uploads an image resource for a memo. Images are stored as provided; server-side compression is disabled.",
+ "summary": "Upload an image or attachment resource for a memo",
+ "description": "Uploads an image or attachment resource for a memo. Images are stored as provided; server-side compression is disabled.",
"requestBody": {
"required": true,
"content": {
diff --git a/packages/shared/src/content.ts b/packages/shared/src/content.ts
index 670c542a..99b370e2 100644
--- a/packages/shared/src/content.ts
+++ b/packages/shared/src/content.ts
@@ -69,7 +69,9 @@ export const resolveMemoContentDoc = (
contentJson: TiptapDoc | null | undefined,
contentMarkdown: string | null | undefined
): TiptapDoc => {
- const currentDoc = contentJson && Array.isArray(contentJson.content) ? contentJson : emptyDoc();
+ const currentDoc = contentJson && Array.isArray(contentJson.content)
+ ? upgradeLegacyAttachmentLinks(contentJson)
+ : emptyDoc();
if (!contentMarkdown?.trim() || docContainsNodeType(currentDoc, "table")) {
return currentDoc;
}
@@ -78,6 +80,43 @@ export const resolveMemoContentDoc = (
return docContainsNodeType(markdownDoc, "table") ? markdownDoc : currentDoc;
};
+const LEGACY_ATTACHMENT_PATTERN = /^(附件:|Attachment:\s*)(.+?)\s+(\/api\/v1\/resources\/\S+|https?:\/\/\S+)$/;
+
+const isTiptapTextNode = (node: TiptapNode | TiptapTextNode): node is TiptapTextNode =>
+ node.type === "text" && "text" in node;
+
+/** Convert the first-generation plain-text attachment insertion into a link mark. */
+const upgradeLegacyAttachmentLinks = (doc: TiptapDoc): TiptapDoc => {
+ const visit = (node: TiptapNode | TiptapTextNode): TiptapNode | TiptapTextNode => {
+ if (isTiptapTextNode(node)) {
+ const match = node.text.match(LEGACY_ATTACHMENT_PATTERN);
+ if (!match) {
+ return node;
+ }
+
+ const existingMarks = node.marks ?? [];
+ if (existingMarks.some((mark) => mark.type === "link")) {
+ return node;
+ }
+
+ return {
+ ...node,
+ text: `${match[1]}${match[2]}`,
+ marks: [
+ ...existingMarks,
+ { type: "link", attrs: { href: match[3], target: "_blank", class: "edgeever-attachment-link" } },
+ ],
+ };
+ }
+
+ return node.content
+ ? { ...node, content: node.content.map((child: TiptapNode | TiptapTextNode) => visit(child)) }
+ : node;
+ };
+
+ return visit(doc) as TiptapDoc;
+};
+
export const docToText = (doc: unknown): string => {
const pieces: string[] = [];
diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.ts
index 360a3748..fdb7e19f 100644
--- a/packages/shared/src/i18n/en-US.ts
+++ b/packages/shared/src/i18n/en-US.ts
@@ -461,6 +461,7 @@ export const enUS = {
noNotebookFound: "No notebooks found",
currentNotebookAria: "Current notebook: {{name}}",
switchToNotebook: "Switch to {{name}}",
+ attachmentLabel: "Attachment: {{filename}}",
attachmentInsertText: "Attachment: {{filename}} {{url}}",
placeholder: "Start writing...",
noteBodyAria: "Note body",
@@ -558,6 +559,7 @@ export const enUS = {
markdownSource: "Markdown source",
switchToMarkdown: "Switch to Markdown mode",
switchToRichText: "Switch to rich text mode",
+ attachment: "Upload attachment",
},
mobileNotebookPicker: {
title: "Switch notebook",
diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.ts
index 97aaa541..a89a0bf0 100644
--- a/packages/shared/src/i18n/zh-CN.ts
+++ b/packages/shared/src/i18n/zh-CN.ts
@@ -461,6 +461,7 @@ export const zhCN = {
noNotebookFound: "没有找到笔记本",
currentNotebookAria: "当前所在笔记本:{{name}}",
switchToNotebook: "切换到 {{name}}",
+ attachmentLabel: "附件:{{filename}}",
attachmentInsertText: "附件:{{filename}} {{url}}",
placeholder: "开始记录...",
noteBodyAria: "笔记正文",
@@ -558,6 +559,7 @@ export const zhCN = {
markdownSource: "Markdown 源码",
switchToMarkdown: "切换到 Markdown 模式",
switchToRichText: "切换到富文本模式",
+ attachment: "上传附件",
},
mobileNotebookPicker: {
title: "切换笔记本",