|
|
|
@ -1961,6 +1961,7 @@ EasyMDE.prototype.openBrowseFileWindow = function(onSuccess, onError) {
|
|
|
|
|
self.uploadImages(event.target.files, onSuccess, onError);
|
|
|
|
|
imageInput.removeEventListener('change', onChange);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
imageInput.addEventListener('change', onChange);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -1978,6 +1979,7 @@ EasyMDE.prototype.uploadImage = function(file, onSuccess, onError) {
|
|
|
|
|
onSuccess = onSuccess || function onSuccess(imageUrl) {
|
|
|
|
|
afterImageUploaded(self, imageUrl);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function onErrorSup(errorMessage) {
|
|
|
|
|
// show error on status bar and reset after 1000ms
|
|
|
|
|
self.updateStatusBar('upload-image', errorMessage);
|
|
|
|
|