API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeTextEditIntent
@codexo/exojs / core / stable
One edit the host wants applied to the text model. `insert` carries the text to place over the current selection (an IME commit, a typed character, a paste); `deleteContent` removes the selection, or the range a granularity step spans next to the caret; `historyUndo`/`historyRedo` ask for the widget's own undo ring, not the host's.
0
props
0
methods
0
events
Import
import { TextEditIntent } from '@codexo/exojs'One edit the host wants applied to the text model. `insert` carries the text to place over the current selection (an IME commit, a typed character, a paste); `deleteContent` removes the selection, or the range a granularity step spans next to the caret; `historyUndo`/`historyRedo` ask for the widget's own undo ring, not the host's.
Definition1
{ direction: "backward" | "forward"; granularity: "character" | "line" | "word"; kind: "deleteContent" } | { kind: "historyRedo" } | { kind: "historyUndo" } | { kind: "insert"; text: string }Source