Updated view source callback to execute correctly

This commit is contained in:
Ollie Philpott
2019-05-16 15:38:56 +01:00
parent 9fac00d91b
commit e9b5225676

View File

@@ -360,7 +360,11 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
icon: "code",
tooltip: "View Source Code",
onclick: function(){
callback();
if (callback) {
angularHelper.safeApply($rootScope, function() {
callback();
});
}
}
});