Skip to main content

CaretDirection

type

The direction of a caret, 'next' points towards the end of the document and 'previous' points towards the beginning

type CaretDirection = 'next' | 'previous'

Import

import { CaretDirection } from '@modular/sdk/editor';