Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 3ff2b65

Browse files
committed
v2.4.1
1 parent e46a46f commit 3ff2b65

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
2.4.1. / 2017-04-11
3+
==================
4+
5+
* Ability to add upload failed callback to options #377
6+
27
2.4.0. / 2016-08-08
38
==================
49

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "medium-editor-insert-plugin",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"description": "jQuery insert plugin for MediumEditor",
55
"homepage": "http://linkesch.com/medium-editor-insert-plugin",
66
"main": [

dist/js/medium-editor-insert-plugin.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* medium-editor-insert-plugin v2.4.0 - jQuery insert plugin for MediumEditor
2+
* medium-editor-insert-plugin v2.4.1 - jQuery insert plugin for MediumEditor
33
*
44
* http://linkesch.com/medium-editor-insert-plugin
55
*
@@ -1646,6 +1646,7 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
16461646
acceptFileTypesError: 'This file is not in a supported format: ',
16471647
maxFileSizeError: 'This file is too big: '
16481648
}
1649+
// uploadError: function($el, data) {}
16491650
// uploadCompleted: function ($el, data) {}
16501651
};
16511652

@@ -1822,7 +1823,14 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
18221823
uploadErrors.push(this.options.messages.maxFileSizeError + file.name);
18231824
}
18241825
if (uploadErrors.length > 0) {
1826+
if (this.options.uploadFailed && typeof this.options.uploadFailed === "function") {
1827+
this.options.uploadFailed(uploadErrors, data);
1828+
1829+
return;
1830+
}
1831+
18251832
alert(uploadErrors.join("\n"));
1833+
18261834
return;
18271835
}
18281836

dist/js/medium-editor-insert-plugin.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "medium-editor-insert-plugin",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"description": "jQuery insert plugin for MediumEditor",
55
"main": "dist/js/medium-editor-insert-plugin.js",
66
"homepage": "http://linkesch.com/medium-editor-insert-plugin",

0 commit comments

Comments
 (0)