Fixes: U4-6754 Resizing image in RTE passes invalid dimension parameters to ImageProcessor

This commit is contained in:
Shannon
2015-06-25 15:18:07 +02:00
parent 346d13174a
commit 9901b2ee3d
2 changed files with 3 additions and 3 deletions

View File

@@ -235,7 +235,7 @@ angular.module("umbraco.directives")
});
editor.on('ObjectResized', function (e) {
var qs = "?width=" + e.width + "px&height=" + e.height + "px";
var qs = "?width=" + e.width + "&height=" + e.height;
var srcAttr = $(e.target).attr("src");
var path = srcAttr.split("?")[0];
$(e.target).attr("data-mce-src", path + qs);

View File

@@ -222,11 +222,11 @@ angular.module("umbraco")
editor.on('ObjectResized', function (e) {
var qs = "?width=" + e.width + "px&height=" + e.height + "px";
var qs = "?width=" + e.width + "&height=" + e.height;
var srcAttr = $(e.target).attr("src");
var path = srcAttr.split("?")[0];
$(e.target).attr("data-mce-src", path + qs);
syncContent(editor);
});