Skip to content

API > @blocksuite/blocks > getCurrentNativeRange

Function: getCurrentNativeRange ​

getCurrentNativeRange(selection = ...): Range

Parameters ​

ParameterType
selectionnull | Selection

Returns ​

Range

Defined In ​

packages/blocks/src/_common/utils/selection.ts:263