keyup
Fires when the user releases a keyboard key.
Example - subscribe to the "keyup" event during initialization
<textarea id="editor"></textarea> <script> $("#editor").kendoEditor({ keyup: function(e) { /* The result can be observed in the DevTools(F12) console of the browser. */ console.log("keyup : keyCode=",e.keyCode); } }); </script> Example - subscribe to the "keyup" event after initialization
<textarea id="editor"></textarea> <script> function editor_keyup(e) { /* The result can be observed in the DevTools(F12) console of the browser. */ console.log("keyup : keyCode=",e.keyCode); } $("#editor").kendoEditor(); var editor = $("#editor").data("kendoEditor"); editor.bind("keyup", editor_keyup); </script> Example - show word count
<textarea id="editor"></textarea> <div id="words"></div> <script> function wordCount(value) { return $.trim(value.replace(/<.*?>/g, " ")) .replace(/['";:,.?\-!]+/g, '') .match(/\S+/g).length; } $("#editor").kendoEditor({ keyup: function(e) { $("#words").text(wordCount(this.value()) + " words"); } }); </script> In this article