getDOMSelection
functionReturns the selection for the given window, or the global window if null. Will return null if CAN_USE_DOM is false.
Import
import { getDOMSelection } from '@modular/sdk/editor';Notes
- returns
- a Selection or null
Returns the selection for the given window, or the global window if null. Will return null if CAN_USE_DOM is false.