Interface Ace

The main class required to set up an Ace instance in the browser.

Index

Methods

Methods

public createEditSession(text: Document, mode: TextMode): IEditSession

Creates a new EditSession, and returns the associated Document.

Parameters

Returns

IEditSession

public createEditSession(text: string, mode: TextMode): IEditSession

Creates a new EditSession, and returns the associated Document.

Parameters

Returns

IEditSession

public edit(el: string): Editor

Embeds the Ace editor into the DOM, at the element provided by el.

Parameters

  • el: string

    Either the id of an element, or the element itself

Returns

Editor

public edit(el: HTMLElement): Editor

Embeds the Ace editor into the DOM, at the element provided by el.

Parameters

  • el: HTMLElement

    Either the id of an element, or the element itself

Returns

Editor

public require(moduleName: string): any

Provides access to require in packed noconflict mode

Parameters

  • moduleName: string

Returns

any