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

Pass the MDE context to the custom image function
pull/235/head
Jeroen Akkerman 4 years ago committed by GitHub
commit b9b19bb5ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 () {

Loading…
Cancel
Save