Skip to content

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 ​

ParameterType
editorVEditor< TextAttributes >

Returns ​

Document

Defined In ​

packages/virgo/src/utils/query.ts:7