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
Source
packages/framework/inline/src/utils/range-conversion.ts:249