Skip to content

BlockSuite API Documentation / @blocksuite/virgo / virgoRangeToDomRange

Function: virgoRangeToDomRange() ​

virgoRangeToDomRange(rootElement, vRange): Range | null

calculate the dom selection from vRange for this Editor

Parameters ​

• rootElement: HTMLElement

• vRange: VRange

Returns ​

Range | null

Source ​

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


Generated using typedoc-plugin-markdown and TypeDoc