Skip to main content

$extendCaretToRange

function

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

function $extendCaretToRange<D extends CaretDirection>(anchor: PointCaret<D>): CaretRange<D>

Import

import { $extendCaretToRange } from '@modular/sdk/editor';