interface Editor {
    commands: Ace.CommandManager;
    completers: Completer[];
    container: HTMLElement;
    id: string;
    keyBinding: Ace.KeyBinding;
    renderer: Ace.VirtualRenderer;
    selection: Ace.Selection;
    session: Ace.EditSession;
    textInput: Ace.TextInput;
    addEventListener(name, callback, capturing?): void;
    blockIndent(): void;
    blockOutdent(): void;
    blur(): void;
    centerSelection(): void;
    clearSelection(): void;
    copyLinesDown(): void;
    copyLinesUp(): void;
    destroy(): void;
    duplicateSelection(): void;
    execCommand(command, args?): boolean;
    find(needle, options?, animate?): Ace.Range;
    findAll(needle, options?, additive?): number;
    findNext(options?, animate?): void;
    findPrevious(options?, animate?): void;
    focus(): void;
    getAnimatedScroll(): boolean;
    getBehavioursEnabled(): boolean;
    getCopyText(): string;
    getCursorPosition(): Ace.Point;
    getCursorPositionScreen(): Ace.Point;
    getDisplayIndentGuides(): boolean;
    getDragDelay(): number;
    getFadeFoldWidgets(): boolean;
    getFirstVisibleRow(): number;
    getFontSize(): string;
    getHighlightActiveLine(): boolean;
    getHighlightGutterLine(): boolean;
    getHighlightSelectedWord(): boolean;
    getKeyboardHandler(): string;
    getLastSearchOptions(): Partial<Ace.SearchOptions>;
    getLastVisibleRow(): number;
    getOption<T>(name): EditorOptions[T];
    getOptions(optionNames?): {
        [key: string]: any;
    };
    getOverwrite(): boolean;
    getPrintMarginColumn(): number;
    getReadOnly(): boolean;
    getScrollSpeed(): number;
    getSelectedText(): string;
    getSelection(): Ace.Selection;
    getSelectionRange(): Ace.Range;
    getSelectionStyle(): string;
    getSession(): Ace.EditSession;
    getShowFoldWidgets(): boolean;
    getShowInvisibles(): boolean;
    getShowPrintMargin(): boolean;
    getTheme(): string;
    getValue(): string;
    getWrapBehavioursEnabled(): boolean;
    gotoLine(lineNumber, column, animate): void;
    gotoPageDown(): void;
    gotoPageUp(): void;
    indent(): void;
    insert(text, pasted?): void;
    isFocused(): boolean;
    isRowFullyVisible(row): boolean;
    isRowVisible(row): boolean;
    jumpToMatching(select, expand): void;
    modifyNumber(amount): void;
    moveCursorTo(row, column): void;
    moveCursorToPosition(pos): void;
    moveLinesDown(): void;
    moveLinesUp(): void;
    moveText(range, toPosition, copy?): Ace.Range;
    navigateDown(times?): void;
    navigateFileEnd(): void;
    navigateFileStart(): void;
    navigateLeft(times?): void;
    navigateLineEnd(): void;
    navigateLineStart(): void;
    navigateRight(times?): void;
    navigateTo(row, column): void;
    navigateUp(times?): void;
    navigateWordLeft(): void;
    navigateWordRight(): void;
    off(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    on(name, callback): void;
    onPaste(text, event): void;
    once(name, callback): void;
    redo(): void;
    remove(dir?): void;
    removeAllListeners(name?): void;
    removeDefaultHandler(name, callback): void;
    removeEventListener(name, callback): void;
    removeGhostText(): void;
    removeLineToEnd(): void;
    removeLines(): void;
    removeListener(name, callback): void;
    removeWordLeft(): void;
    removeWordRight(): void;
    replace(replacement, options?): number;
    replaceAll(replacement, options?): number;
    resize(force?): void;
    scrollPageDown(): void;
    scrollPageUp(): void;
    scrollToLine(line, center, animate, callback): void;
    scrollToRow(row): void;
    selectAll(): void;
    selectPageDown(): void;
    selectPageUp(): void;
    setAnimatedScroll(shouldAnimate): void;
    setAutoScrollEditorIntoView(enable): void;
    setBehavioursEnabled(enabled): void;
    setDefaultHandler(name, callback): void;
    setDisplayIndentGuides(display): void;
    setDragDelay(dragDelay): void;
    setFadeFoldWidgets(fade): void;
    setFontSize(size): void;
    setGhostText(text, position): void;
    setHighlightActiveLine(shouldHighlight): void;
    setHighlightGutterLine(shouldHighlight): void;
    setHighlightSelectedWord(shouldHighlight): void;
    setKeyboardHandler(keyboardHandler, callback?): void;
    setKeyboardHandler(keyboardHandler): void;
    setOption<T>(name, value): void;
    setOptions(optList): void;
    setOverwrite(overwrite): void;
    setPrintMarginColumn(showPrintMargin): void;
    setReadOnly(readOnly): void;
    setScrollSpeed(speed): void;
    setSelectionStyle(val): void;
    setSession(session): void;
    setShowFoldWidgets(show): void;
    setShowInvisibles(showInvisibles): void;
    setShowPrintMargin(showPrintMargin): void;
    setStyle(style): void;
    setTheme(theme, callback?): void;
    setValue(val, cursorPos?): string;
    setWrapBehavioursEnabled(enabled): void;
    sortLines(): void;
    splitLine(): void;
    toLowerCase(): void;
    toUpperCase(): void;
    toggleBlockComment(): void;
    toggleCommentLines(): void;
    toggleOverwrite(): void;
    transposeLetters(): void;
    undo(): void;
    unsetStyle(style): void;
}

Hierarchy (view full)

Properties

Methods

addEventListener blockIndent blockOutdent blur centerSelection clearSelection copyLinesDown copyLinesUp destroy duplicateSelection execCommand find findAll findNext findPrevious focus getAnimatedScroll getBehavioursEnabled getCopyText getCursorPosition getCursorPositionScreen getDisplayIndentGuides getDragDelay getFadeFoldWidgets getFirstVisibleRow getFontSize getHighlightActiveLine getHighlightGutterLine getHighlightSelectedWord getKeyboardHandler getLastSearchOptions getLastVisibleRow getOption getOptions getOverwrite getPrintMarginColumn getReadOnly getScrollSpeed getSelectedText getSelection getSelectionRange getSelectionStyle getSession getShowFoldWidgets getShowInvisibles getShowPrintMargin getTheme getValue getWrapBehavioursEnabled gotoLine gotoPageDown gotoPageUp indent insert isFocused isRowFullyVisible isRowVisible jumpToMatching modifyNumber moveCursorTo moveCursorToPosition moveLinesDown moveLinesUp moveText navigateDown navigateFileEnd navigateFileStart navigateLeft navigateLineEnd navigateLineStart navigateRight navigateTo navigateUp navigateWordLeft navigateWordRight off on onPaste once redo remove removeAllListeners removeDefaultHandler removeEventListener removeGhostText removeLineToEnd removeLines removeListener removeWordLeft removeWordRight replace replaceAll resize scrollPageDown scrollPageUp scrollToLine scrollToRow selectAll selectPageDown selectPageUp setAnimatedScroll setAutoScrollEditorIntoView setBehavioursEnabled setDefaultHandler setDisplayIndentGuides setDragDelay setFadeFoldWidgets setFontSize setGhostText setHighlightActiveLine setHighlightGutterLine setHighlightSelectedWord setKeyboardHandler setOption setOptions setOverwrite setPrintMarginColumn setReadOnly setScrollSpeed setSelectionStyle setSession setShowFoldWidgets setShowInvisibles setShowPrintMargin setStyle setTheme setValue setWrapBehavioursEnabled sortLines splitLine toLowerCase toUpperCase toggleBlockComment toggleCommentLines toggleOverwrite transposeLetters undo unsetStyle

Properties

completers: Completer[]
container: HTMLElement
id: string
keyBinding: Ace.KeyBinding
selection: Ace.Selection
session: Ace.EditSession
textInput: Ace.TextInput

Methods

  • Returns void

  • Parameters

    • command: string | string[]
    • Optional args: any

    Returns boolean

  • Parameters

    • needle: string | RegExp
    • Optional options: Partial<Ace.SearchOptions>
    • Optional additive: boolean

    Returns number

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns number

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns string

  • Returns number

  • Parameters

    • Optional optionNames: string[] | {
          [key: string]: any;
      }

    Returns {
        [key: string]: any;
    }

    • [key: string]: any
  • Returns boolean

  • Returns number

  • Returns boolean

  • Returns number

  • Returns string

  • Returns string

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Parameters

    • lineNumber: number
    • column: number
    • animate: boolean

    Returns void

  • Parameters

    • text: string
    • Optional pasted: boolean

    Returns void

  • Parameters

    • row: number

    Returns boolean

  • Parameters

    • row: number

    Returns boolean

  • Parameters

    • select: boolean
    • expand: boolean

    Returns void

  • Parameters

    • amount: number

    Returns void

  • Parameters

    • row: number
    • column: number

    Returns void

  • Parameters

    • Optional times: number

    Returns void

  • Parameters

    • Optional times: number

    Returns void

  • Parameters

    • Optional times: number

    Returns void

  • Parameters

    • row: number
    • column: number

    Returns void

  • Parameters

    • Optional times: number

    Returns void

  • Parameters

    • name: "blur"
    • callback: ((e) => void)
        • (e): void
        • Parameters

          • e: Event

          Returns void

    Returns void

  • Parameters

    • name: "input"
    • callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    • name: "change"
    • callback: ((delta) => void)
        • (delta): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • name: "changeSelectionStyle"
    • callback: ((obj) => void)
        • (obj): void
        • Parameters

          • obj: {
                data: string;
            }
            • data: string

          Returns void

    Returns void

  • Parameters

    Returns void

  • Parameters

    • name: "copy"
    • callback: ((obj) => void)
        • (obj): void
        • Parameters

          • obj: {
                text: string;
            }
            • text: string

          Returns void

    Returns void

  • Parameters

    • name: "focus"
    • callback: ((e) => void)
        • (e): void
        • Parameters

          • e: Event

          Returns void

    Returns void

  • Parameters

    • name: "paste"
    • callback: ((obj) => void)
        • (obj): void
        • Parameters

          • obj: {
                text: string;
            }
            • text: string

          Returns void

    Returns void

  • Parameters

    • name: "mousemove"
    • callback: ((e) => void)
        • (e): void
        • Parameters

          • e: any

          Returns void

    Returns void

  • Parameters

    • name: "mouseup"
    • callback: ((e) => void)
        • (e): void
        • Parameters

          • e: any

          Returns void

    Returns void

  • Parameters

    • name: "mousewheel"
    • callback: ((e) => void)
        • (e): void
        • Parameters

          • e: any

          Returns void

    Returns void

  • Parameters

    • name: "click"
    • callback: ((e) => void)
        • (e): void
        • Parameters

          • e: any

          Returns void

    Returns void

  • Parameters

    • name: "guttermousedown"
    • callback: ((e) => void)
        • (e): void
        • Parameters

          • e: any

          Returns void

    Returns void

  • Parameters

    • name: "gutterkeydown"
    • callback: ((e) => void)
        • (e): void
        • Parameters

          • e: any

          Returns void

    Returns void

  • Parameters

    • text: string
    • event: any

    Returns void

  • Parameters

    • Optional dir: "left" | "right"

    Returns void

  • Parameters

    Returns number

  • Parameters

    Returns number

  • Parameters

    • Optional force: boolean

    Returns void

  • Parameters

    • line: number
    • center: boolean
    • animate: boolean
    • callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    • row: number

    Returns void

  • Parameters

    • shouldAnimate: boolean

    Returns void

  • Parameters

    • enable: boolean

    Returns void

  • Parameters

    • enabled: boolean

    Returns void

  • Parameters

    • display: boolean

    Returns void

  • Parameters

    • dragDelay: number

    Returns void

  • Parameters

    • fade: boolean

    Returns void

  • Parameters

    • size: string | number

    Returns void

  • Parameters

    Returns void

  • Parameters

    • shouldHighlight: boolean

    Returns void

  • Parameters

    • shouldHighlight: boolean

    Returns void

  • Parameters

    • shouldHighlight: boolean

    Returns void

  • Parameters

    • keyboardHandler: string
    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    Returns void

  • Parameters

    • overwrite: boolean

    Returns void

  • Parameters

    • showPrintMargin: number

    Returns void

  • Parameters

    • readOnly: boolean

    Returns void

  • Parameters

    • speed: number

    Returns void

  • Parameters

    • val: string

    Returns void

  • Parameters

    • show: boolean

    Returns void

  • Parameters

    • showInvisibles: boolean

    Returns void

  • Parameters

    • showPrintMargin: boolean

    Returns void

  • Parameters

    • style: string

    Returns void

  • Parameters

    • theme: string
    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    • val: string
    • Optional cursorPos: number

    Returns string

  • Parameters

    • enabled: boolean

    Returns void

  • Returns void

  • Returns void

  • Parameters

    • style: string

    Returns void

Generated using TypeDoc