Skip to main content
Modular Documentation
Guides
Reference
Reference
/
@modular/sdk/editor
$getPreviousSelection
function
Returns the selection from the previous editor state, or null if none existed.
function $getPreviousSelection(): null | BaseSelection
Import
import { $getPreviousSelection } from '@modular/sdk/editor';