$extendCaretToRange
functionConstruct a CaretRange that starts at anchor and goes to the end of the document in the anchor caret's direction.
Construct a CaretRange that starts at anchor and goes to the end of the document in the anchor caret's direction.