BlockSuite API Documentation / @blocksuite/inline / findDocumentOrShadowRoot
Function: findDocumentOrShadowRoot()
findDocumentOrShadowRoot<
TextAttributes
>(editor
):Document
Type parameters
• TextAttributes extends Object
Parameters
• editor: InlineEditor
<TextAttributes
>
Returns
Document
Source
packages/framework/inline/src/utils/query.ts:7