Umbraco Grid custom editor not persisting config to the Model
I am trying to implement a custom Umbraco Grid editor for a fixed widht and height image. The config in /config/grid.editors.config.js now looks like this:
With this in place (see the last grid editor: Fixed width image), I can select it in the grid. Everything also persists to the view. The problem is that I cannot get to the config part. It always comes up empty:
Mdodel.editor is not null and shows the correct custom editor I added in the config. But Model.editor.config is {} when evaluating the dynamic expression in Visual Studio.
Additional information: I did not do anything else then add the editor in the config as depicted above to get the custom editor working in Umbraco.
Umbraco Grid custom editor not persisting config to the Model
I am trying to implement a custom Umbraco Grid editor for a fixed widht and height image. The config in /config/grid.editors.config.js now looks like this:
With this in place (see the last grid editor: Fixed width image), I can select it in the grid. Everything also persists to the view. The problem is that I cannot get to the config part. It always comes up empty:
Mdodel.editor is not null and shows the correct custom editor I added in the config. But Model.editor.config is {} when evaluating the dynamic expression in Visual Studio.
Additional information: I did not do anything else then add the editor in the config as depicted above to get the custom editor working in Umbraco.
Thank you guys in advance!
OK, I fixed it.
It just so happened that the config was added after I added an item with that editor to the grid.
So, in short, always create the config before editing the grid.
is working on a reply...