Claude 841ab4cb94 fix: decline dropped files in the editor so they don't inline
Dragging an image onto the markdown editor attached it to the strip (the
drop zone fired) but ProseMirror also handled the same drop, parsing the
drag's HTML into an inline image node with a blob:/localhost src. That URL
then leaked into the markdown and surfaced as a stray link-preview chip.

Add a ProseMirror handleDrop that declines drops carrying files, so the
editor stops inlining them while the drop zone still routes them to the
attachment strip. Extract the paste/drag file extraction into a shared
transferFiles helper used by both paths.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01QtNQeBpkDJPC9obiB25pV6
2026-06-21 15:49:27 +00:00
2026-02-19 19:41:26 -08:00
2026-06-02 08:56:29 -07:00
2026-06-11 16:52:05 -07:00
2026-01-27 11:16:58 -08:00
2026-02-19 19:41:26 -08:00
2026-06-20 17:22:45 -07:00
2026-06-11 10:58:36 -07:00
S
Description
No description provided
21 MiB
Languages
TypeScript 68.6%
Go 20.6%
C++ 8.7%
CSS 0.8%
CMake 0.3%
Other 0.8%