2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-04 00:24:29 -06:00

Merge pull request #225 from JoshuaLicense/pass-context-to-custom-image-upload-function

Pass the MDE context to the custom image function
This commit is contained in:
Jeroen Akkerman 2020-08-11 12:38:19 +02:00 committed by GitHub
commit b9b19bb5ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2291,7 +2291,7 @@ EasyMDE.prototype.uploadImageUsingCustomFunction = function(imageUploadFunction,
.replace('#image_max_size#', humanFileSize(self.options.imageMaxSize, units));
}
imageUploadFunction(file, onSuccess, onError);
imageUploadFunction.apply(this, [file, onSuccess, onError]);
};
EasyMDE.prototype.setPreviewMaxHeight = function () {