Nov 09, 2017 03:59 PM|Yeoman|LINK
thanks! In the meantime, I found (one more time) that the ID is modified by ASP, so that ace.edit couldn't find the div.
I solved it like this:
var editor = ace.edit("<%=editor.ClientID%>");
I tried your method and I found that the ID is not modified in this case.
Now I wonder which method better suits my use case.
Note that I want to use a code editor both in the ItemTemplate and the EditTemplate of a FormView. Maybe it would be better to have unique IDs then?