Highlighting the text when editing an item from the tree

When I want the user to rename an item from the tree, I open the editor for him:

 tree.editItem(tree.getSelectedItemId());

But I want the text in the editor to be selected (highlighted). Now the cursor is in the end of the text and the text isn’t selected. How to do this?

Here is your approach:

[code]tree.attachEvent(“onEdit”,function(state){
if(state==1){

                    var inp = this._editCell.span.firstChild;
                    inp.select();
                }
                return true
            })[/code]


Tnx :slight_smile: