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

Commit c39da02

Browse files
committed
v2.3.2
1 parent 15e2041 commit c39da02

9 files changed

+31
-23
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2+
2.3.2 / 2016-04-26
3+
==================
4+
5+
* Fix UMD (#320)
6+
17
2.3.1 / 2016-04-19
28
==================
39

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.3.1",
3+
"version": "2.3.2",
44
"description": "jQuery insert plugin for MediumEditor",
55
"homepage": "http://linkesch.com/medium-editor-insert-plugin",
66
"main": [

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.3.1 - jQuery insert plugin for MediumEditor
2+
* medium-editor-insert-plugin v2.3.2 - jQuery insert plugin for MediumEditor
33
*
44
* http://linkesch.com/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.3.1 - jQuery insert plugin for MediumEditor
2+
* medium-editor-insert-plugin v2.3.2 - jQuery insert plugin for MediumEditor
33
*
44
* http://linkesch.com/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: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* medium-editor-insert-plugin v2.3.1 - jQuery insert plugin for MediumEditor
2+
* medium-editor-insert-plugin v2.3.2 - jQuery insert plugin for MediumEditor
33
*
44
* http://linkesch.com/medium-editor-insert-plugin
55
*
@@ -9,21 +9,23 @@
99

1010
(function (factory) {
1111
if (typeof define === 'function' && define.amd) {
12-
define(['jquery', 'handlebars', 'medium-editor', 'blueimp-file-upload', 'jquery-sortable'], factory);
12+
define(['jquery', 'handlebars/runtime', 'medium-editor', 'blueimp-file-upload', 'jquery-sortable'], factory);
1313
} else if (typeof module === 'object' && module.exports) {
14-
module.exports = function( root, jQuery ) {
15-
if ( jQuery === undefined ) {
16-
if ( typeof window !== 'undefined' ) {
17-
jQuery = require('jquery');
18-
Handlebars = require('handlebars');
19-
MediumEditor = require('medium-editor');
20-
}
21-
else {
22-
jQuery = require('jquery')(root);
23-
Handlebars = require('handlebars')(root);
24-
MediumEditor = require('medium-editor')(root);
25-
}
14+
module.exports = function (jQuery) {
15+
if (typeof window === 'undefined') {
16+
throw new Error("medium-editor-insert-plugin runs only in a browser.")
17+
}
18+
19+
if (jQuery === undefined) {
20+
jQuery = require('jquery');
2621
}
22+
window.jQuery = jQuery;
23+
24+
Handlebars = require('handlebars/runtime');
25+
MediumEditor = require('medium-editor');
26+
require('jquery-sortable');
27+
require('blueimp-file-upload');
28+
2729
factory(jQuery, Handlebars, MediumEditor);
2830
return jQuery;
2931
};

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.3.1",
3+
"version": "2.3.2",
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)