BlockSuite API Documentation / @blocksuite/inline / transformDeltasToEmbedDeltas
Function: transformDeltasToEmbedDeltas()
transformDeltasToEmbedDeltas<
TextAttributes
>(editor
,deltas
):DeltaInsert
<TextAttributes
>[]
Type Parameters
• TextAttributes extends object
= { bold
: null
| true
; code
: null
| true
; italic
: null
| true
; link
: null
| string
; strike
: null
| true
; underline
: null
| true
; }
Parameters
editor
InlineEditor
<TextAttributes
>
deltas
DeltaInsert
<TextAttributes
>[]
Returns
DeltaInsert
<TextAttributes
>[]
Defined in
packages/framework/inline/src/utils/embed.ts:26