While Kendo Editor MVVM works with "data" attributes, if I try to use it with Javascript initialization MVVM doesnt work.
WORKING
<textarea id="bodyEditor1" data-role="editor"
data-bind="visible: isVisible,
value: html,
events: { change: onChange }"
style="height: 100px;"></textarea>
NOT WORKING
<textarea id="bodyEditor2" style="height: 100px;"></textarea>
$("#bodyEditor2").kendoEditor({
bind: "visible: isVisible, value: html, events: { change: onChange }"
}).data("kendoEditor");
I was trying to set the "encoded" property to false and neither this worked correctly.
Full dojo:
https://dojo.telerik.com/@ChrisMylonas/IpuWoQUP