sendKeyPress: function() { console.log('sendKeyPress'); var $editor = $(this.get('editor').getDocument()).find('body'); var keyEvent = $.Event( "keypress", { keyCode: 69, which: 69, charCode: 69 }); $editor.focus(); $editor.trigger(keyEvent); },