This is a migrated thread and some comments may be shown as answers.

keyup event

1 Answer 436 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Piotr Jarocki
Top achievements
Rank 1
Piotr Jarocki asked on 03 Apr 2012, 07:09 AM
is there a way to fire keyup event in editor? also how to use onChange? but still onchanges uses blur right? and i need to know if someone changed one letter without blur.

1 Answer, 1 is accepted

Sort by
0
Eric
Top achievements
Rank 1
answered on 25 Apr 2012, 02:16 PM
I got an answer in another thread that allow me to listen to keyup events.
http://www.kendoui.com/forums/ui/editor/kendo-ui-editor-autocomplete-auto-suggest.aspx#2082496

Basically what you can do is this, assuming $("#editor") is the selector you used to initialize the editor;

var editor = $("#editor").data("kendoEditor");
$(editor.body).on("keyup", function (e) {
    // do stuff
});
Tags
Editor
Asked by
Piotr Jarocki
Top achievements
Rank 1
Answers by
Eric
Top achievements
Rank 1
Share this question
or