mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-12 12:34:29 -06:00
Pass the MDE context to the image function
Removes the need to bind the context manually when wanting to access the class methods.
This commit is contained in:
parent
754bdc3ab2
commit
0fc64ff7f9
@ -2287,7 +2287,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