Merge pull request #6927 from kjac/v8/fix/rte-insert-image-auto-resize

V8: Auto-resize the RTE after inserting images
This commit is contained in:
Poornima Nayar
2020-02-05 20:36:12 +00:00
committed by GitHub

View File

@@ -308,6 +308,8 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
var src = imgUrl + "?width=" + newSize.width + "&height=" + newSize.height;
editor.dom.setAttrib(imageDomElement, 'data-mce-src', src);
}
editor.execCommand("mceAutoResize", false, null, null);
}
}