A better test (checks to see if it's even defined)
This commit is contained in:
@@ -30,7 +30,7 @@ angular.module("umbraco")
|
||||
var await = [];
|
||||
|
||||
//queue file loading
|
||||
if (!tinymce) { // Don't reload tinymce if already loaded
|
||||
if (typeof tinymce === "undefined") { // Don't reload tinymce if already loaded
|
||||
await.push(assetsService.loadJs("lib/tinymce/tinymce.min.js", $scope));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user