Caret and range selection, click or drag to select, end of document marker (phony newline), plain text in textarea)