Ionaru / Ionaru/easy-markdown-editor

Paste image from clipboard does not work

Open
#523 3 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Paste image does nothing

**To Reproduce**
Copy image to clipboard (the raw image from an image editor, not a url)
Attempt to Ctrl (or MAC Cmd) + V to paste in the editor. Context menu paste also should be an option.
Neither work and nothing happens when attempted

**Expected behavior**
Image flow should be initiated with the image on the clipboard

**Version information**
- OS: Windows 11, x64 Firefox browser, chrome browser, others not tested
- Latest MDE as of 2022-01-14, using jsdelivr in vanilla javascript application

Notes: Drag/drop and upload button work fine.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in Firefox and Chrome with a raw image copied from an image editor, using both Ctrl/Cmd+V and the context menu. Compare the clipboard behavior with the working drag/drop and upload flows. Done means pasting initiates the image flow without breaking the existing input methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.