Added selectText to textEditor. Fixes #576