interface EditorEvents {
    beforeEndOperation: ((e) => void);
    blur: ((e) => void);
    change: ((delta) => void);
    changeMode: ((e) => void);
    changeSelection: (() => void);
    changeSelectionStyle: ((data) => void);
    changeSession: ((e) => void);
    changeStatus: ((e) => void);
    codeLensClick: ((e) => void);
    copy: ((e) => void);
    destroy: ((e) => void);
    findSearchBox: ((e) => void);
    focus: ((e?) => void);
    input: (() => void);
    keyboardActivity: ((e) => void);
    mousedown: ((e) => void);
    mousemove: ((e, editor?) => void);
    mouseup: ((e) => void);
    mousewheel: ((e) => void);
    nativecontextmenu: ((e) => void);
    paste: ((text, event) => void);
    select: (() => void);
}

Properties

beforeEndOperation: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: any

      Returns void

blur: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: any

      Returns void

change: ((delta) => void)

Type declaration

    • (delta): void
    • Parameters

      Returns void

changeMode: ((e) => void)

Type declaration

changeSelection: (() => void)

Type declaration

    • (): void
    • Returns void

changeSelectionStyle: ((data) => void)

Emitted when the selection style changes, via [[Editor.setSelectionStyle]].

Type declaration

    • (data): void
    • Emitted when the selection style changes, via [[Editor.setSelectionStyle]].

      Parameters

      • data: "line" | "text" | "fullLine" | "screenLine"

        Contains one property, data, which indicates the new selection style

      Returns void

Param: data

Contains one property, data, which indicates the new selection style

changeSession: ((e) => void)

Emitted whenever the [[EditSession]] changes.

Type declaration

    • (e): void
    • Emitted whenever the [[EditSession]] changes.

      Parameters

      Returns void

Param: e

An object with two properties, oldSession and session, that represent the old and new [[EditSession]]s.

changeStatus: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: any

      Returns void

codeLensClick: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: any

      Returns void

copy: ((e) => void)

Emitted when text is copied.

Type declaration

    • (e): void
    • Emitted when text is copied.

      Parameters

      • e: {
            text: string;
        }
        • text: string

      Returns void

Param: text

The copied text

destroy: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: any

      Returns void

findSearchBox: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: {
            match: boolean;
        }
        • match: boolean

      Returns void

focus: ((e?) => void)

Type declaration

    • (e?): void
    • Parameters

      • Optional e: any

      Returns void

input: (() => void)

Type declaration

    • (): void
    • Returns void

keyboardActivity: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: any

      Returns void

mousedown: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: MouseEvent

      Returns void

mousemove: ((e, editor?) => void)

Type declaration

    • (e, editor?): void
    • Parameters

      • e: MouseEvent & {
            scrollTop?: any;
        }
      • Optional editor: Editor

      Returns void

mouseup: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: MouseEvent

      Returns void

mousewheel: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: MouseEvent

      Returns void

nativecontextmenu: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: any

      Returns void

paste: ((text, event) => void)

Emitted when text is pasted.

Type declaration

    • (text, event): void
    • Emitted when text is pasted.

      Parameters

      • text: string
      • event: any

      Returns void

select: (() => void)

Type declaration

    • (): void
    • Returns void

Generated using TypeDoc