title: Force IE contentEditable element to create line breaks on Enter key, without breaking Undo
body: <p>On Internet Explorer, a contentEditable DIV creates a new paragraph (<code>&lt;p&gt;&lt;/p&gt;</code>) each time you press Enter whereas Firefox creates a <code>&lt;br/&gt;</code>  tag.</p>
  
  <p>As discussed <a href="https://stackoverflow.com/questions/2057881/avoid-ie-contenteditable-element-to-create-paragraphs-on-enter-key" title="avoid ie contentEditable element to create paragraphs on Enter key">here</a>, it is possible to use JavaScript to intercept the Enter keyPress and use range.pasteHTML to create a <code>&lt;br/&gt;</code> instead.  But doing this breaks the Undo menu; once you hit Enter, you can no longer Undo past that point.</p>
  
  <p>How can I force the contentEditable element to create single line breaks on Enter without breaking Undo?</p>