Fiddle 1: http://jsfiddle.net/LmaYP/
Fiddle 2: http://liveweave.com/adAgUN
When I dblclick the header I make it contenteditable, and then I set it to focus. I noticed after I dblclick the element, the text on that element is selected.
I still want to select text inside the element both before dblclick and after, but when dblclick is called I don't want to select any text.
Is there anyway to fix this?
$("header").on('dblclick', function() {
$(this).prop('contenteditable', true).focus();
});