diff --git a/src/Umbraco.Web.UI.Client/src/less/gridview.less b/src/Umbraco.Web.UI.Client/src/less/gridview.less index 778acc5607..107e042a16 100644 --- a/src/Umbraco.Web.UI.Client/src/less/gridview.less +++ b/src/Umbraco.Web.UI.Client/src/less/gridview.less @@ -155,6 +155,8 @@ IFRAME {overflow:hidden;} opacity: 0.3; z-index: 50; } +//special rule to ensure forms doesnt overrride (forms will align in a later release) +.umb-grid .cell-tools{width: 50px !important;} .usky-grid .cell-tools.with-prompt { width:200px; diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/error.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/error.html new file mode 100644 index 0000000000..67ef4ea112 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/error.html @@ -0,0 +1,2 @@ +
Something went wrong with this editor, below is the data stored:
+{{control | json}}
\ No newline at end of file
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js
index 8851f74b34..f4a61a597e 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js
@@ -572,19 +572,32 @@ angular.module("umbraco")
control.$index = index;
control.$uniqueId = $scope.setUniqueId();
+ //error handling in case of missing editor..
+ //should only happen if stripped earlier
+ if(!control.editor){
+ control.$editorPath = "views/propertyeditors/grid/editors/error.html";
+ }
+
if(!control.$editorPath){
var editorConfig = $scope.getEditor(control.editor.alias);
- control.editor = editorConfig;
+ if(editorConfig){
+ control.editor = editorConfig;
+
//if its an absolute path
if (control.editor.view.startsWith("/") || control.editor.view.startsWith("~/")) {
control.$editorPath = umbRequestHelper.convertVirtualToAbsolutePath(control.editor.view);
}
else {
- //use convention
- control.$editorPath = "views/propertyeditors/grid/editors/" + control.editor.view + ".html";
+ //use convention
+ control.$editorPath = "views/propertyeditors/grid/editors/" + control.editor.view + ".html";
+ }
+ }else{
+ control.$editorPath = "views/propertyeditors/grid/editors/error.html";
}
}
+
+
};
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html
index 6f092c8ea8..cd3e504156 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html
@@ -1,4 +1,4 @@
-