API > @blocksuite/virgo > findDocumentOrShadowRoot
Function: findDocumentOrShadowRoot ​
findDocumentOrShadowRoot<
TextAttributes>(editor):Document
Type parameters ​
| Parameter |
|---|
TextAttributes extends {bold: null | true; code: null | true; italic: null | true; link: null | string; strike: null | true; underline: null | true;} |
Parameters ​
| Parameter | Type |
|---|---|
editor | VEditor< TextAttributes > |
Returns ​
Document
Defined In ​
packages/virgo/src/utils/query.ts:7