mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-04 08:34:28 -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:
commit
b9b19bb5ff
@ -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…
x
Reference in New Issue
Block a user