Hello.
I want to insert one of Kendo Controls in the content editor.
For Example, DatePicker
I use the following code:
var editor = $("#editor").data("kendoEditor");
var elementHtml = "<input id='dtp' />";
editor.exec("inserthtml", { value: elementHtml });
Then executes the code for the DatePicker:
var dtp = $(editor.body).find("[id='dtp']");
dtp.kendoDatePicker({ animation: false });
But only displays the input field itself DatePicker is not loaded.
Tell me, what is wrong.
Thanks in advance.
Regards,
Alexey.
P.S. If I use the insert simple elements (like a button or a text box), everything is displayed correctly.
I want to insert one of Kendo Controls in the content editor.
For Example, DatePicker
I use the following code:
var editor = $("#editor").data("kendoEditor");
var elementHtml = "<input id='dtp' />";
editor.exec("inserthtml", { value: elementHtml });
Then executes the code for the DatePicker:
var dtp = $(editor.body).find("[id='dtp']");
dtp.kendoDatePicker({ animation: false });
But only displays the input field itself DatePicker is not loaded.
Tell me, what is wrong.
Thanks in advance.
Regards,
Alexey.
P.S. If I use the insert simple elements (like a button or a text box), everything is displayed correctly.