select entire contents of cell on enter edit

currnetly when you enter edit mode on a cell it places the cursor to the side of the existing text. how can i make it select all the contents upon entering edit mode?

Add next code snippet to grid initialization, it must provide necessary effect for common excell types

if (stage==1 && this.editor && this.editor.obj);
return true;