getDOMSelectionFromTarget
functionReturns the selection for the defaultView of the ownerDocument of given EventTarget.
Import
import { getDOMSelectionFromTarget } from '@modular/sdk/editor';Notes
- returns
- a Selection or null
Returns the selection for the defaultView of the ownerDocument of given EventTarget.