Skip to main content
Modular Documentation
Guides
Reference
Reference
/
@modular/sdk/editor
getDOMOwnerDocument
function
Returns the owner Document of the given EventTarget, or the target itself if it is a Document.
function getDOMOwnerDocument(target: EventTarget | null): Document | null
Import
import { getDOMOwnerDocument } from '@modular/sdk/editor';