Hi,
I'm using kendo editor to substitute the ajax html editor in my aspx application. I believe the same I'm using now to write.
I am using kendo 2013.2.918 version.
I need to implement the Undo/redo functionalities. Basically I added two custom buttons and a function to handle the click in the tools[] array as
$("#editor").kendoEditor({
tools: [
..........
{
name: "customundo",
tooltip: "Undo",
exec: function (e) {
var editor = $(this).data("kendoEditor");
editor.exec("undo");
}
},
{
name: "customredo",
tooltip: "Redo",
exec: function (e) {
var editor = $(this).data("kendoEditor");
editor.exec("redo");
}
},
..........
]
Everytime I click the undo/redo button, the method editor.exec(undo/redo) is called.
I always get an error in kendo.all.min.js as
"JSCript runtime error: object doesn't support this property or method.
in kendo.all.min.js the statement "a.undoRedoStack[e]" is highlighted.
I implemented a preliminary version this summer using version 2013.2.710 and the exec(undo) worked. I noticed also the css changed substantially between the 2 versions.
I tried kendo.web.min.js but it behaves in the same way. Can you please tell me how I can implement undo/redo ?
For completeness I attach the the aspx file
Thanks for your kind attention
best regards
Marco
I'm using kendo editor to substitute the ajax html editor in my aspx application. I believe the same I'm using now to write.
I am using kendo 2013.2.918 version.
I need to implement the Undo/redo functionalities. Basically I added two custom buttons and a function to handle the click in the tools[] array as
$("#editor").kendoEditor({
tools: [
..........
{
name: "customundo",
tooltip: "Undo",
exec: function (e) {
var editor = $(this).data("kendoEditor");
editor.exec("undo");
}
},
{
name: "customredo",
tooltip: "Redo",
exec: function (e) {
var editor = $(this).data("kendoEditor");
editor.exec("redo");
}
},
..........
]
Everytime I click the undo/redo button, the method editor.exec(undo/redo) is called.
I always get an error in kendo.all.min.js as
"JSCript runtime error: object doesn't support this property or method.
in kendo.all.min.js the statement "a.undoRedoStack[e]" is highlighted.
I implemented a preliminary version this summer using version 2013.2.710 and the exec(undo) worked. I noticed also the css changed substantially between the 2 versions.
I tried kendo.web.min.js but it behaves in the same way. Can you please tell me how I can implement undo/redo ?
For completeness I attach the the aspx file
Thanks for your kind attention
best regards
Marco