fn
isBlockActive
testedWhether the focused block matches a type (and optionally a subset of attrs).
Signature
ts
export function isBlockActive(state: WritekitState, type: string, attrs?: Attrs): boolean{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
state | WritekitState | — |
type | string | — |
attrs? | Attrs | — |
Returns
boolean