diff --git a/bower.json b/bower.json
index 7e1aae2b3..6949db768 100644
--- a/bower.json
+++ b/bower.json
@@ -21,16 +21,16 @@
"package.json"
],
"dependencies": {
- "jquery": "1.9.0 - 2.0.3",
+ "jquery": ">=1.9.0",
"medium-editor": "~1.9",
- "handlebars": "~1.3.0",
+ "handlebars": "~2.0.0",
"blueimp-file-upload": "~9.8.0",
"jquery-sortable": "~0.9.12"
},
"devDependencies": {
- "qunit": "~1.12.0",
- "sinon": "~1.7.0",
- "sinon-qunit": "~1.0.0",
+ "qunit": "~1.15.0",
+ "sinon": "~1.10.3",
+ "sinon-qunit": "~2.0.0",
"jquery-cycle2": "~2.1.6"
}
}
diff --git a/examples/index.html b/examples/index.html
index ca67f45f5..8b4f39d6b 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -77,7 +77,7 @@
License
-
+
diff --git a/src/js/templates.js b/src/js/templates.js
index 31a86eccf..aefa1719d 100644
--- a/src/js/templates.js
+++ b/src/js/templates.js
@@ -1,102 +1,64 @@
this["MediumInsert"] = this["MediumInsert"] || {};
this["MediumInsert"]["Templates"] = this["MediumInsert"]["Templates"] || {};
-this["MediumInsert"]["Templates"]["src/js/templates/core-buttons.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- this.compilerInfo = [4,'>= 1.0.0'];
-helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
- var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;
-
-function program1(depth0,data) {
-
- var buffer = "", stack1, helper;
- buffer += "\n ";
- if (helper = helpers.label) { stack1 = helper.call(depth0, {hash:{},data:data}); }
- else { helper = (depth0 && depth0.label); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
- if(stack1 || stack1 === 0) { buffer += stack1; }
- buffer += "\n ";
- return buffer;
- }
-
- buffer += "\n";
- return buffer;
- });
+ stack1 = ((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"label","hash":{},"data":data}) : helper));
+ if (stack1 != null) { buffer += stack1; }
+ return buffer + "\n";
+},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
+ var stack1, buffer = "\n";
+},"useData":true});
-this["MediumInsert"]["Templates"]["src/js/templates/core-empty-line.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- this.compilerInfo = [4,'>= 1.0.0'];
-helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
-
+this["MediumInsert"]["Templates"]["src/js/templates/core-empty-line.hbs"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
return "
\n";
- });
+ },"useData":true});
-this["MediumInsert"]["Templates"]["src/js/templates/images-fileupload.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- this.compilerInfo = [4,'>= 1.0.0'];
-helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
-
+this["MediumInsert"]["Templates"]["src/js/templates/images-fileupload.hbs"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
return "";
- });
+ },"useData":true});
-this["MediumInsert"]["Templates"]["src/js/templates/images-image.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- this.compilerInfo = [4,'>= 1.0.0'];
-helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
- var buffer = "", stack1, helper, functionType="function", escapeExpression=this.escapeExpression;
- buffer += "