Skip to content

BlockSuite API Documentation / @blocksuite/inline / inlineRangeToDomRange

Function: inlineRangeToDomRange()

inlineRangeToDomRange(rootElement, inlineRange): Range | null

calculate the dom selection from inline range for this Editor

Parameters

rootElement

HTMLElement

inlineRange

InlineRange

Returns

Range | null

Defined in

packages/framework/inline/src/utils/range-conversion.ts:252