SCEditor

selectedRange()

selectedRange() Since: 1.3.5

Gets the currently selected DOM range.

Syntax

var range = instance.selectedRange();

Return

Type: Range

Will return null if there is currently no selection.