Merge pull request #2337 from skttl/U4-10549-rte-memory-usage

Fix for U4-10549 RTE memory usage
This commit is contained in:
Shannon Deminick
2017-12-12 11:53:42 +01:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -366,6 +366,9 @@ angular.module("umbraco.directives")
// element might still be there even after the modal has been hidden.
scope.$on('$destroy', function () {
unsubscribe();
if (tinyMceEditor !== undefined && tinyMceEditor != null) {
tinyMceEditor.destroy()
}
});
});

View File

@@ -374,6 +374,9 @@ angular.module("umbraco")
// element might still be there even after the modal has been hidden.
$scope.$on('$destroy', function () {
unsubscribe();
if (tinyMceEditor !== undefined && tinyMceEditor != null) {
tinyMceEditor.destroy()
}
});
});
});