I have upgraded an Umbraco v7 project to v8. The project uses custom grid Editors that allow you to select an image and save, after the upgrade I have not been able to get the grid Editors to save. I can select and image and the image is displayed in the back office when I click save and publish the image disappears and is not saved
I have updated the controller to use editorService as dialogService is not used anymore.
This is my controller
angular.module("umbraco").controller("responsiveimagecontroller", function ($scope, assetsService, editorService) {
$scope.openMediaPicker = function () {
console.error("openMediaPicker");
var options = {
multiPicker: false,
submit: function (value) {
populateImage(value.selection[0]);
editorService.close();
},
close: function () {
editorService.close();
}
}
editorService.mediaPicker(options);
}
function populateImage(item) {
$scope.control.responsiveImage.imageUrl = item.image;
$scope.control.responsiveImage.imageId = item.id;
}
if (!$scope.control.responsiveImage) {
$scope.control.responsiveImage = {};
}
assetsService.loadCss("~/App_Plugins/ResponsiveImage/editor.css");
});
Custom grid Editors not saving
I have upgraded an Umbraco v7 project to v8. The project uses custom grid Editors that allow you to select an image and save, after the upgrade I have not been able to get the grid Editors to save. I can select and image and the image is displayed in the back office when I click save and publish the image disappears and is not saved
I have updated the controller to use editorService as dialogService is not used anymore.
This is my controller
.html file
and Manifest
This is what is being saved in the db table umbracoPropertyData
any help would be appreciated
Thanks
is working on a reply...