BlockSuite API Documentation / @blocksuite/affine-block-embed / getDocContentWithMaxLength
Function: getDocContentWithMaxLength()
getDocContentWithMaxLength(
doc,maxlength):undefined|string
Defined in: packages/affine/blocks/block-embed/src/common/render-linked-doc.ts:275
Gets the document content with a max length.
Parameters
doc
maxlength
number = 500
Returns
undefined | string