mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-09-24 16:40:55 -06:00
Auto-format of the code
This commit is contained in:
parent
4702e8677a
commit
00b763ce3a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user