Added check to rte controller so as not to reload tinymce script if it's already loaded (we don't check the CSS, but I figure this is ok) [This is temp bandaid for #U4-4724]
This commit is contained in:
@@ -30,7 +30,9 @@ angular.module("umbraco")
|
||||
var await = [];
|
||||
|
||||
//queue file loading
|
||||
await.push(assetsService.loadJs("lib/tinymce/tinymce.min.js", $scope));
|
||||
if (!tinymce) { // Don't reload tinymce if already loaded
|
||||
await.push(assetsService.loadJs("lib/tinymce/tinymce.min.js", $scope));
|
||||
}
|
||||
|
||||
//queue rules loading
|
||||
angular.forEach(editorConfig.stylesheets, function(val, key){
|
||||
|
||||
Reference in New Issue
Block a user