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>[]

Source

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