UNPKG

@portabletext/editor

Version:

Portable Text Editor made in React

10 lines (8 loc) 237 B
import type {EditorSelection} from '..' import type {EditorSelector} from '../editor/editor-selector' /** * @public */ export const getSelection: EditorSelector<EditorSelection> = (snapshot) => { return snapshot.context.selection }