easy-markdown-editor icon indicating copy to clipboard operation
easy-markdown-editor copied to clipboard

The issue of uploading the same image consecutively.

Open ken678 opened this issue 9 months ago • 1 comments

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.

ken678 avatar Mar 21 '25 07:03 ken678

Same happening here.

chingologram avatar Aug 29 '25 20:08 chingologram