BlockSuite API Documentation / @blocksuite/blocks / createEmbedBlockPlainTextAdapterMatcher
Function: createEmbedBlockPlainTextAdapterMatcher()
createEmbedBlockPlainTextAdapterMatcher(
flavour
,__namedParameters
?):BlockPlainTextAdapterMatcher
Parameters
flavour
string
__namedParameters?
fromBlockSnapshot
{ enter
: (o
, context
) => void
| Promise
<void
>; leave
: (o
, context
) => void
| Promise
<void
>; }
fromBlockSnapshot.enter
(o
, context
) => void
| Promise
<void
>
Called when entering a BlockSnapshot walker node during traversal
fromBlockSnapshot.leave
(o
, context
) => void
| Promise
<void
>
Called when leaving a BlockSnapshot walker node during traversal
fromMatch
(o
) => boolean
toBlockSnapshot
{ enter
: (o
, context
) => void
| Promise
<void
>; leave
: (o
, context
) => void
| Promise
<void
>; }
toBlockSnapshot.enter
(o
, context
) => void
| Promise
<void
>
Called when entering a target walker node during traversal
toBlockSnapshot.leave
(o
, context
) => void
| Promise
<void
>
Called when leaving a target walker node during traversal
toMatch
(o
) => boolean
Returns
BlockPlainTextAdapterMatcher
Defined in
packages/affine/block-embed/dist/common/adapters/plain-text.d.ts:2