Bug fix whre mediapicker dont load before an event fires elsewhere #14250 (#14803)

This commit is contained in:
Lucas Bach Bisgaard
2023-10-13 11:34:45 +02:00
committed by GitHub
parent 0362dcffc8
commit 0ece94bf46

View File

@@ -80,7 +80,7 @@
vm.sortableOptions.disabled = vm.readonly || vm.singleMode;
});
vm.$onInit = function() {
vm.$onInit = function() {
vm.node = vm.node || editorState.getCurrent();
// If we do not have a node on the scope, then disallow drop media
@@ -179,7 +179,8 @@
vm.allowAdd = hasAccessToMedia;
mediaUploader.init(uploaderOptions).then(() => {
vm.loading = false;
vm.loading = false;
$scope.$apply();
});
});
};