lineEndsInSelection

Locate the ends of all lines enclosing the active selection. If no text is selected, then locate the end of the line containing the caret.

Return

The positions of the desired linefeed (U+0009) characters.