Fix for issue 6 (collapseToEnd with line breaks in inserted text)