fn
isTextBlockType
testedWhether a block type holds inline (text) content.
Signature
ts
export function isTextBlockType(state: EditorState, type: string): boolean{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
state | EditorState | — |
type | string | — |
Returns
boolean