$getCaretInDirection
functionReturn the caret if it's in the given direction, otherwise return caret.getFlipped().
Import
import { $getCaretInDirection } from '@modular/sdk/editor';Notes
- returns
- A PointCaret in direction
Return the caret if it's in the given direction, otherwise return caret.getFlipped().