interface DocumentEvents {
    change: (e: Delta) => void;
    changeNewLineMode: () => void;
}

Properties

change: (e: Delta) => void

Fires whenever the document changes. Several methods trigger different "change" events. Below is a list of each action type, followed by each property that's also available:

  • "insert"
    • range: the [[Range]] of the change within the document
    • lines: the lines being added
  • "remove"
    • range: the [[Range]] of the change within the document
    • lines: the lines being removed
changeNewLineMode: () => void