Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Dragging a markdown file onto Editor view offers "Drop to Embed" but Opens instead

Open blsz opened this issue 2 months ago • 1 comments

Markpad version

2.8.2

How did you install it?

Windows — installer (Markpad_…_setup.exe)

OS and version

Windows 10

What happens, and what you expected instead

Dragging a markdown file onto Preview shows "Drop to Open" but dragging onto Editor shows "Drop to Embed". When dropped, the file is not embedded but opened in both cases, which may actually be logical. It makes sense to drop and embed images, not necessarily markdown files. So the text should probably read "Drop to Open" for both Edit and Preview when the file(s) being dragged are markdown files.

Steps to reproduce

No response

The Markdown that triggers it


Screenshots, and anything else

No response

blsz avatar Sep 30 '26 00:09 blsz

Fixed in #930. Opening is the intended behaviour for a Markdown file on either pane, and only images are embedded, so the editor now says "Drop to Open" for a document and keeps "Drop to Embed" for an image.

PathGao avatar Sep 30 '26 10:09 PathGao