Added selection functionality to TextEditorControl