Select all in contenteditable focus
http://stackoverflow.com/q/34950616/145346
by Mottie
HTML
<div contenteditable="true">0,00</div>
JavaScript
$('div[contenteditable]').on('focus', function() {
setTimeout(function(){
document.execCommand('selectAll', false, null);
}, 1);
});