johnnyjoygh 8701d93fc0 fix(editor): attach pasted files instead of inlining them
Pasting an image went through the inline-image path and wrote its
markdown
into the text immediately; the file only surfaced in the attachment list
once that markdown was deleted. A paste carries no placement gesture, so
pasted files now join the attachment list like the + menu's upload, and
the list's own Insert action is how a pasted image becomes inline. Drop
keeps inlining images at the drop point.

The CodeMirror handler reports the gesture as an EditorFileOrigin
through
the single onFiles callback, and MemoEditor owns one ingest function
with a
placement argument that the + menu, paste and drop all share.
createBlobUrl
is memoized so the ingest callback's dependencies hold.
2026-09-10 23:25:17 +08:00
2026-08-22 10:34:28 +08:00
2026-08-22 10:34:28 +08:00
2026-03-05 19:14:16 +08:00
2025-02-11 15:45:20 +08:00
2026-09-06 22:19:02 +08:00
2026-04-01 08:39:49 +08:00

✨ Featured sponsor: CodeRabbit — Industry-leading AI code reviews.

Memos

Fast enough for every thought. Private enough for all of them.

Memos is an open-source, self-hosted home for short-form thinking. Daily notes, links, work logs, and snippets flow into a chronological Markdown timeline—on infrastructure you control, without the overhead of an all-in-one workspace.

Run with Docker · Try the live demo · Read the docs

GitHub stars Latest release Docker pulls MIT license

Memos Demo Screenshot

Why Memos?

  • Capture quickly — Write in Markdown, attach media, and save without choosing a title, folder, or template.
  • Organize lightly — Revisit notes through the timeline, search, tags, and pins.
  • Share selectively — Keep memos private or publish only what you choose.
  • Keep control — Self-host Memos with zero telemetry and MIT-licensed source.

Explore all features →

Quick Start

Run Memos with Docker:

docker run -d \
  --name memos \
  -p 5230:5230 \
  -v ~/.memos:/var/opt/memos \
  neosmemo/memos:stable

Other install options are in the deployment guide.

Web Clipper

Save pages, selections, and images from your browser straight into Memos as source-linked Markdown. Get the Memos Web Clipper for Chrome or Firefox.

Sponsors

CodeRabbit — Cut code review time and bugs in half        SSD Nodes — Affordable VPS hosting for self-hosters        TestMu AI — The world’s first full-stack Agentic AI Quality Engineering platform

Love Memos? Sponsor the project on GitHub.

Get Help

Read the docs, join Discord, or ask in GitHub Discussions. Found a bug or have an idea? Open an issue. To contribute, see the contributing guide.

Star History

Memos star history chart
Languages
Go 51.2%
TypeScript 48.2%
Shell 0.4%
CSS 0.1%