title: Use of ckeditor "key" CKEDITOR.instances.editor.on('key', function (e){
body: <p>I realize there are questions about how to implement an event handler for CKEDITOR 4. I am able to use this code to get the key-down data, but I can't seem to get the data after a key-up:</p>
  
  <pre><code>CKEDITOR.instances.editor.on('key', function (e){
      document.getElementById("preview").innerHTML = CKEDITOR.instances.editor.getData();
  });
  </code></pre>
  
  <p>So when I type a string like "aaa" into the text editor field, the first character is never fetched. So my div id="preview" will only show "aa". I've iterated over the e object, which is quite complex, but nothing there strikes me as useful to solving this.</p>
  
  <p>I also don't see other people writing about this. There doesn't seem to be a "keyup" event in CKEDITOR, though I see it written about a lot. "keyup" must have been in older versions?</p>
  
  <p>I hope I have clearly stated my problem.</p>