Skip to main content

isLastChildInBlockNode

function

True when `node` is the trailing non-whitespace child of a block DOM element (excluding the only-child case). Used by the LineBreak importer to drop trailing `<br>` elements like the Apple-interchange clipboard artifact (matches `LineBreakNode.importDOM`).

function isLastChildInBlockNode(node: Node): boolean

Import

import { isLastChildInBlockNode } from '@modular/sdk/editor';