Skip to main content

$isSelectionCapturedInDecoratorInput

function

Returns true if the active element (resolved from the anchor's root) is a decorator's own input (e.g. an input, textarea, or foreign contentEditable) rather than Lexical-managed content.

function $isSelectionCapturedInDecoratorInput(anchorDOM: Node, preResolvedActiveElement?: Element | null): boolean

Import

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