Skip to main content

$needsBlockCursorBeside

function

Returns true if the given node needs a block cursor given an adjacent selection, the node must be non-inline and one of: - DecoratorNode - ShadowRootNode with a parent that is not also a ShadowRootNode - An ElementNode that can't be empty

function $needsBlockCursorBeside(node: null | LexicalNode): boolean

Import

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