mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-18 15:34:28 -06:00
Auto-format of the code
This commit is contained in:
parent
6c66b54e2a
commit
f1b6a42561
@ -1961,6 +1961,7 @@ EasyMDE.prototype.openBrowseFileWindow = function(onSuccess, onError) {
|
|||||||
self.uploadImages(event.target.files, onSuccess, onError);
|
self.uploadImages(event.target.files, onSuccess, onError);
|
||||||
imageInput.removeEventListener('change', onChange);
|
imageInput.removeEventListener('change', onChange);
|
||||||
}
|
}
|
||||||
|
|
||||||
imageInput.addEventListener('change', onChange);
|
imageInput.addEventListener('change', onChange);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1978,6 +1979,7 @@ EasyMDE.prototype.uploadImage = function(file, onSuccess, onError) {
|
|||||||
onSuccess = onSuccess || function onSuccess(imageUrl) {
|
onSuccess = onSuccess || function onSuccess(imageUrl) {
|
||||||
afterImageUploaded(self, imageUrl);
|
afterImageUploaded(self, imageUrl);
|
||||||
};
|
};
|
||||||
|
|
||||||
function onErrorSup(errorMessage) {
|
function onErrorSup(errorMessage) {
|
||||||
// show error on status bar and reset after 1000ms
|
// show error on status bar and reset after 1000ms
|
||||||
self.updateStatusBar('upload-image', errorMessage);
|
self.updateStatusBar('upload-image', errorMessage);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user