Skip to content

The issue of uploading the same image consecutively. #613

@ken678

Description

@ken678

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions