diff --git a/src/Umbraco.Web.UI.Client/src/App_Plugins/TrixEditor/trix.directive.js b/src/Umbraco.Web.UI.Client/src/App_Plugins/TrixEditor/trix.directive.js index 3045968a77..87f033d55f 100755 --- a/src/Umbraco.Web.UI.Client/src/App_Plugins/TrixEditor/trix.directive.js +++ b/src/Umbraco.Web.UI.Client/src/App_Plugins/TrixEditor/trix.directive.js @@ -17,12 +17,13 @@ trixAttachmentRemove: '&' */ }, - link: function($scope, element, attrs, ngModel, notificationsService) { - + link: function($scope, element, ngModel, notificationsService, localizationService) { + // TODO: retrive from configuration: var acceptedFileTypes = ["image/jpeg", "image/png"]; + var editorElement = element[0]; @@ -33,8 +34,7 @@ editorElement.editor.loadHTML(ngModel.$modelValue); } - addUploadFeature() - + addUploadFeature(); }