Ionaru / Ionaru/easy-markdown-editor

The issue of uploading the same image consecutively.

Open
#613 1 comment 1 reaction 0 assignees View on GitHub
Bug
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

**To Reproduce**
Set the imageUploadFunction parameter
When uploading the same image consecutively, the first attempt succeeds, but there is no response for subsequent attempts. If a different image is uploaded, it succeeds again.

```
var easyMDE = new EasyMDE({
element: editor[0],
promptURLs: true,
forceSync: true,
toolbar: [
"bold", "strikethrough", "italic", "heading", "heading-2", "heading-3", "|",
"code", "quote", "|",
"unordered-list", "ordered-list", "table", "|",
"link", "upload-image", "|", "preview", "side-by-side", "fullscreen", "|",
"guide"
],
uploadImage: true,
status: false,
imageUploadFunction: (file, onSuccess, onError) => {
alert(444);
}
});
```
Uploading the same image, the above code will only pop up 444 once.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.