Skip to content

BlockSuite API Documentation / @blocksuite/inline / transformDeltasToEmbedDeltas

Function: transformDeltasToEmbedDeltas()

transformDeltasToEmbedDeltas<TextAttributes>(editor, deltas): DeltaInsert<TextAttributes>[]

Type Parameters

TextAttributes extends object = object

Parameters

editor: InlineEditor<TextAttributes>

deltas: DeltaInsert<TextAttributes>[]

Returns

DeltaInsert<TextAttributes>[]

Defined in

packages/framework/inline/src/utils/embed.ts:26