Ace API Reference
    Preparing search index...

    Interface DocumentEvents

    interface DocumentEvents {
        change: (e: Ace.Delta, emitter: Document) => void;
        changeNewLineMode: (e: undefined, emitter: Document) => void;
    }
    Index

    Properties

    change: (e: Ace.Delta, emitter: Document) => 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: (e: undefined, emitter: Document) => void