title: Make a <br> instead of <div></div> by pressing Enter on a contenteditable
body: <p>I've written a bit of code in my keyboard event handler to insert a <code>&lt;br&gt;</code> in response to the press of the Enter key:</p>
  
  <pre><code>event.preventDefault();
  document.execCommand('InsertHTML', true, '&lt;br&gt;');
  </code></pre>
  
  <p>This only works if the cursor is between two Letters, if its on the end i need two <code>&lt;br&gt;</code>-Elements. Can i detect if i'm on the end of a Line? Or some other working idea for the Enter problem?</p>
  
  <p>I also tried to catch the normal key-event (wothout the ctrl-Key pressed) and create a keyboard-event with JS where the Enter Key is pressed together with the ctrl. But this dosn't work…</p>
  
  <p>It only has to Work in Webkit/Safari…</p>