fn

isBlockActive

tested

Whether 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

ParameterTypeDescription
stateWritekitState
typestring
attrs?Attrs

Returns

boolean