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

Add `onUploading` for `imageUploadFunction`

Open bilogic opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. When remote server is slow and I paste/upload an image, there is no reaction in easyMDE and make users wonder if they did it correctly, some may try to paste again leading to double uploads

Describe the solution you'd like Show a progress indicator like GitHub ![Uploading image.png…]() and replace it with the actual link thereafter. From the code, I think it make sense to add onUploading and onUploaded if necessary, i.e.

imageUploadFunction: function(file, onSuccess, onError, onUploading) {
    // ... some validation
    onUploading("Uploading image.png...")

Describe alternatives you've considered none

Additional context none

bilogic avatar May 04 '24 03:05 bilogic