BlockSuite API Documentation / @blocksuite/virgo / findDocumentOrShadowRoot
Function: findDocumentOrShadowRoot() ​
findDocumentOrShadowRoot<
TextAttributes>(editor):Document
Type parameters ​
• TextAttributes extends Object
Parameters ​
• editor: VEditor<TextAttributes>
Returns ​
Document
Source ​
packages/virgo/src/utils/query.ts:7
Generated using typedoc-plugin-markdown and TypeDoc