Skip to content

BlockSuite API Documentation / @blocksuite/inline / deltaInsertsToChunks

Function: deltaInsertsToChunks()

deltaInsertsToChunks<TextAttributes>(delta): DeltaInsert<TextAttributes>[][]

Defined in: packages/framework/inline/src/utils/delta-convert.ts:37

convert a delta insert array to chunks, each chunk is a line

Type Parameters

TextAttributes

TextAttributes extends object

Parameters

delta

DeltaInsert<TextAttributes>[]

Returns

DeltaInsert<TextAttributes>[][]