I think it's actually the last one. I created http://jsfiddle.net/27uwM/ to see what happens really with contenteditable because it's not really intuitive.

You'll also see why we need a <br> in the contenteditable at the start.