Merge pull request #2729 from russellshome/patch-1

Fix for TinyMCE inserts __mcenew in id attribute for images
This commit is contained in:
Sebastiaan Janssen
2018-07-25 13:38:53 +02:00
committed by GitHub

View File

@@ -156,13 +156,13 @@ function tinyMceService($log, imageHelper, $http, $timeout, macroResource, macro
var s = "width: " + newSize.width + "px; height:" + newSize.height + "px;";
editor.dom.setAttrib(imgElm, 'style', s);
editor.dom.setAttrib(imgElm, 'id', null);
if (img.url) {
var src = img.url + "?width=" + newSize.width + "&height=" + newSize.height;
editor.dom.setAttrib(imgElm, 'data-mce-src', src);
}
}
}
editor.dom.setAttrib(imgElm, 'id', null);
}, 500);
}
},