fn
closestBlockHost
The nearest contenteditable block host containing `node`, or `null`.
Signature
ts
export function closestBlockHost(node: Node | null): HTMLElement | null{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
node | Node | null | — |
Returns
HTMLElement | null