2
0
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:
Joshua License 2020-08-08 11:05:56 +01:00
parent 754bdc3ab2
commit 0fc64ff7f9

View File

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