move caret to end of text when editing existing node