Skip to main content

$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';