R
fn

isTextBlockType

tested

Whether a block type holds inline (text) content.

Signature

ts
export function isTextBlockType(state: EditorState, type: string): boolean{ ... }

Parameters

ParameterTypeDescription
stateEditorState
typestring

Returns

boolean