I have some divs in a table like this one:
<div contenteditable="true"
onfocus="document.execCommand('selectAll',false,null)">Something</div>
When focusing a div by clicking it, it all works fine, the whole text is being selected.
The problem is that I want the same behaviour when navigating between divs by tab. As it is, navigating by tab just lets me edit the div without selecting the text.
How can I achieve that?