Element.getTextInRange

Returns the value of the text within a given range in the input.

text in range (click the input to execute):

Element.getSelectedText

Gets the text that is currently selected.

selected text (select some text to execute):

Element.getSelectedRange

Gets the range that is selected.

getSelectedRange: (select some text to execute)

Element.selectRange

Selects a range of text.

selectRange (click to execute; this example passes in an array [2,5]):

Element.insertAtCursor

Insert text at the cursor location.

insertAtCursor (click anywhere to insert the example):

Element.insertAroundCursor

Wraps text with the given strings.

insertAroundCursor (select some text or click anywhere to insert "<" and ">" around the text, test multiple lines):