Chrome selects all text content on focus
by dhchow
HTML
<div contenteditable="true" id="text" style="height:300px; width: 300px;"></div>
<button id="focus">Focus</button>
JavaScript
$(function(){
$("#text").focus();
})
$("#focus").click(function(){
$("#text").focus();
});