- On onKeyUp of that text area run through the text looking for http
- If found grab the whole URL (how do I determine the end? could be period, comma, space, etc...)
- Make sure the URL isn't already a bit.ly URL
- Validate the URL (make a request and make sure the http response is not an error, does bit.ly already do this?)
- If valid, send the url to bit.ly's API and get the response
- Replace the long URL with the short URL in the text area.