Tag Archives: jquery

HTML5 contenteditable Backspace Bug Fix

When editing text in HTML5’s contenteditable attribute you probably need to have all of your content wrapped with <p> or <div> tags like so.

<p>My text</p>
<p>Another line of text</p>

The problem is if you do the following it will screw up your block formatting and dump in empty lines of text. Which is nasty formatting you don’t want and the cursor placement will start wacking out in your contenteditable area.

Continue reading HTML5 contenteditable Backspace Bug Fix