fn
isMarkActive
testedWhether a mark is active for the current selection — used by toggleMark and
by toolbars (call a command without dispatch for the same answer).
Signature
ts
export function isMarkActive(state: WritekitState, type: string): boolean{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
state | WritekitState | — |
type | string | — |
Returns
boolean