AI OnAI Off
Hi Jonas
The Alloy starter site has an example of a property editor in Dojo: https://github.com/episerver/alloy-mvc-template/blob/master/src/Alloy.Mvc.Template/ClientResources/Scripts/Editors/StringList.js
You might be able to glean something from here to make yours work?
David
My first guess would be to make sure the name of the JS file matches the name in the ClientEditor attribute, e.g.
[ClientEditor(ClientEditingClass = "msbse/editors/EmailEditors")]
That is to say EmailEditors with an s on the end.
Hi,
So i finally decided to jump the dojo hurdle and try to create a editor widget. I really tried to make it as simple as possible and followed the instructions on this page: https://world.episerver.com/documentation/developer-guides/CMS/editing/Creating-an-editor-widget/
But, ofcourse it's not working and i really can't figure out why.
The first step i did was create the JS-file under ClientResources/Scripts/Editors/EmailEditors.js.
Then i createt a property on one of my pages
And, a step i guess is missing in the documenteation is creating a module.config? Or is this obsolete? Anyway, i created i module.config
Edit mode on tha page conatining the property ends up blank, and the console shows this error:
What im i missing here?