textareaUtils helper for the  text selection of textarea