Skip to main content

getTextContentFromNodes

@blockslides/core


@blockslides/core / getTextContentFromNodes

Function: getTextContentFromNodes()

getTextContentFromNodes($from, maxMatch): string

Defined in: blockslides/packages/core/src/helpers/getTextContentFromNodes.ts:9

Returns the text content of a resolved prosemirror position

Parameters

$from

ResolvedPos

The resolved position to get the text content from

maxMatch

number = 500

The maximum number of characters to match

Returns

string

The text content