interface EditSessionEvents {
    beforeEndOperation: () => void;
    change: (delta: Delta) => void;
    changeAnnotation: (e: {}) => void;
    changeBackMarker: () => void;
    changeBreakpoint: (e?: { breakpoint?: boolean; row?: number }) => void;
    changeEditor: (e: { editor?: Editor; oldEditor?: Editor }) => void;
    changeFold: (e: any, session?: EditSession) => void;
    changeFrontMarker: () => void;
    changeMode: (e: any) => void;
    changeOverwrite: (overwrite: boolean) => void;
    changeScrollLeft: (scrollLeft: number) => void;
    changeScrollTop: (scrollTop: number) => void;
    changeSelection: () => void;
    changeTabSize: () => void;
    changeWrapLimit: (e: any) => void;
    changeWrapMode: (e: any) => void;
    endOperation: (op?: any) => void;
    startOperation: (op?: { args?: any; command?: { name?: string } }) => void;
    tokenizerUpdate: (e: { data: { first: number; last: number } }) => void;
}

Properties

beforeEndOperation: () => void
change: (delta: Delta) => void

Emitted when the document changes.

changeAnnotation: (e: {}) => void

Emitted when an annotation changes, like through [[EditSession.setAnnotations]].

changeBackMarker: () => void

Emitted when a back marker changes.

changeBreakpoint: (e?: { breakpoint?: boolean; row?: number }) => void

Emitted when the gutter changes, either by setting or removing breakpoints, or when the gutter decorations change.

changeEditor: (e: { editor?: Editor; oldEditor?: Editor }) => void
changeFold: (e: any, session?: EditSession) => void

Emitted when a code fold is added or removed.

changeFrontMarker: () => void

Emitted when a front marker changes.

changeMode: (e: any) => void

Emitted when the current mode changes.

changeOverwrite: (overwrite: boolean) => void

Emitted when the ability to overwrite text changes, via [[EditSession.setOverwrite]].

changeScrollLeft: (scrollLeft: number) => void

Emitted when the scroll left changes.

Type declaration

    • (scrollLeft: number): void
    • Parameters

      • scrollLeft: number

        The new scroll left value

      Returns void

changeScrollTop: (scrollTop: number) => void

Emitted when the scroll top changes.

Type declaration

    • (scrollTop: number): void
    • Parameters

      • scrollTop: number

        The new scroll top value

      Returns void

changeSelection: () => void
changeTabSize: () => void

Emitted when the tab size changes, via [[EditSession.setTabSize]].

changeWrapLimit: (e: any) => void

Emitted when the wrapping limit changes.

changeWrapMode: (e: any) => void

Emitted when the wrap mode changes.

endOperation: (op?: any) => void
startOperation: (op?: { args?: any; command?: { name?: string } }) => void
tokenizerUpdate: (e: { data: { first: number; last: number } }) => void

Emitted when a background tokenizer asynchronously processes new rows.