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: EditorState, type: string): boolean{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
state | EditorState | — |
type | string | — |
Returns
boolean