Skip to content

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