Does anyone know why the colour picker prevalue editor is not included in the prevalueeditors folder? I've noticed it exists in umbraco/Views/propertyeditors/colorpicker/colorpicker.prevalues.html the controller looks good. I've tested it and seems fine it's a great addition if you need to allow content editors the ability to set background colours.
For anyone interested I simply added the file to umbraco/Views/prevalueeditors folder removing prevalues from the file name. Then added the following JSON config to the datatype grid under styles
I apologize but I am not sure where you added the JSON config. Do you mean you updated the grid.default.config.js under Views/propertyeditors/grid/config/?
Grid Colorpicker Prevalue Editor
Hi,
Does anyone know why the colour picker prevalue editor is not included in the prevalueeditors folder? I've noticed it exists in umbraco/Views/propertyeditors/colorpicker/colorpicker.prevalues.html the controller looks good. I've tested it and seems fine it's a great addition if you need to allow content editors the ability to set background colours.
For anyone interested I simply added the file to umbraco/Views/prevalueeditors folder removing prevalues from the file name. Then added the following JSON config to the datatype grid under styles
Great help. Thanks! :-)
I apologize but I am not sure where you added the JSON config. Do you mean you updated the grid.default.config.js under Views/propertyeditors/grid/config/?
You probably already know the answer, but for anyone else reading this the JSON config goes into the Umbraco admin:
Any ideas on how to get this with the approved color datatype?
If anyone will be looking for ColorPicker editor for Grid DataType Settings\Styles I've prepared gist with the editor file and usage instructions
You can find it here: https://gist.github.com/pbres/a5f58be8debf98b29f6f81ad3f0f5ed5
I submitted a few months ago this PR https://github.com/umbraco/Umbraco-CMS/pull/1503 to support a color prevalue editor.
/Bjarne
is working on a reply...