Skip to content

API > @blocksuite/virgo > virgoRangeToDomRange

Function: virgoRangeToDomRange ​

virgoRangeToDomRange(rootElement, vRange): Range | null

calculate the dom selection from vRange for this Editor

Parameters ​

ParameterType
rootElementHTMLElement
vRangeVRange

Returns ​

Range | null

Defined In ​

packages/virgo/src/utils/range-conversion.ts:249