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

Commit adb9e9d

Browse files
committed
v2.2.0
1 parent 5732132 commit adb9e9d

9 files changed

+18
-12
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.2.0 / 2016-01-11
3+
==================
4+
5+
* Add ```fileDeleteOptions``` option to images
6+
27
2.1.1 / 2015-11-23
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.1.1",
3+
"version": "2.2.0",
44
"description": "jQuery insert plugin for MediumEditor",
55
"main": [
66
"dist/js/medium-editor-insert-plugin.js",

dist/css/medium-editor-insert-plugin-frontend.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* medium-editor-insert-plugin v2.1.1 - jQuery insert plugin for MediumEditor
2+
* medium-editor-insert-plugin v2.2.0 - jQuery insert plugin for MediumEditor
33
*
44
* https://github.com/orthes/medium-editor-insert-plugin
55
*

dist/css/medium-editor-insert-plugin-frontend.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* medium-editor-insert-plugin v2.1.1 - jQuery insert plugin for MediumEditor
2+
* medium-editor-insert-plugin v2.2.0 - jQuery insert plugin for MediumEditor
33
*
44
* https://github.com/orthes/medium-editor-insert-plugin
55
*

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* medium-editor-insert-plugin v2.1.1 - jQuery insert plugin for MediumEditor
2+
* medium-editor-insert-plugin v2.2.0 - jQuery insert plugin for MediumEditor
33
*
44
* https://github.com/orthes/medium-editor-insert-plugin
55
*
@@ -1413,6 +1413,7 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
14131413
url: 'upload.php',
14141414
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i
14151415
},
1416+
fileDeleteOptions: {},
14161417
styles: {
14171418
wide: {
14181419
label: '<span class="fa fa-align-justify"></span>',
@@ -1919,11 +1920,11 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
19191920
// If deleteMethod is somehow undefined, defaults to POST
19201921
var method = this.options.deleteMethod || 'POST';
19211922

1922-
$.ajax({
1923+
$.ajax($.extend(true, {}, {
19231924
url: this.options.deleteScript,
19241925
type: method,
19251926
data: { file: file }
1926-
});
1927+
}, this.options.fileDeleteOptions));
19271928
}
19281929
};
19291930

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.1.1",
3+
"version": "2.2.0",
44
"description": "jQuery insert plugin for MediumEditor",
55
"license": "MIT",
66
"homepage": "https://github.com/orthes/medium-editor-insert-plugin",

0 commit comments

Comments
 (0)