fn

closestBlockHost

The nearest contenteditable block host containing node, or null.

Signature

ts
export function closestBlockHost(node: Node | null): HTMLElement | null{ ... }

Parameters

ParameterTypeDescription
nodeNode | null

Returns

HTMLElement | null