Skip to main content

$normalizeSelection__EXPERIMENTAL

function

Descends element-type anchor and focus points of a RangeSelection toward the deepest text-type points, stopping at non-element leaf nodes.

function $normalizeSelection__EXPERIMENTAL(selection: RangeSelection): RangeSelection

Import

import { $normalizeSelection__EXPERIMENTAL } from '@modular/sdk/editor';