This event calls user-defined handlers (if there are any) and passes the following parameters:
tree.attachEvent("onEdit", function(state,id,tree,value){});
For stages 0 and 2 this event returns: true - confirms opening|closing, false - denies opening|closing; text - edit value.