textareas with linefeeds - Fixes #1068
refactor textarea document manipulation into one place
Merge pull request #1069 from twalpole/textare_newline

Textarea with linefeeds - Fixes #1068