diff --git a/Makefile b/Makefile index 1e781dab..373d4c88 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ build: pre_build doc: cd doc;\ - test -d node_modules || npm install;\ + (test -d node_modules && npm update) || npm install;\ node build.js clean: diff --git a/api/ace.html b/api/ace.html index eb2ecc96..7b46b2c1 100644 --- a/api/ace.html +++ b/api/ace.html @@ -1,7 +1,7 @@ - Ace - Ace API

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

+ Ace - Ace API

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

Methods

This method embeds the Ace editor into the DOM, at the element provided by el.

   

This method embeds the Ace editor into the DOM, at the element provided by el.

Arguments

elString | DOMElement

Required. Either the id of an element, or the element itself

diff --git a/api/anchor.html b/api/anchor.html index 515c299a..60b23109 100644 --- a/api/anchor.html +++ b/api/anchor.html @@ -1,14 +1,14 @@ - Anchor - Ace API

Defines the floating pointer in the document. Whenever text is inserted or deleted before the cursor, the position of the cursor is updated

+ Anchor - Ace API

Defines the floating pointer in the document. Whenever text is inserted or deleted before the cursor, the position of the cursor is updated

Constructors

Creates a new Anchor and associates it with a document.

   

Creates a new Anchor and associates it with a document.

Arguments

docDocument

Required. The document to associate with the anchor

rowNumber

Required. The starting row position

columnNumber

Required. The starting column position

-

Events

    • Anchor.on("change", function(Object e))

    Fires whenever the anchor position changes.

    -

       

    Fires whenever the anchor position changes.

    +

    Events

      • Anchor.on("change", function(Object e))

      Fires whenever the anchor position changes.

      +

         

      Fires whenever the anchor position changes.

      Events that can trigger this function include setPosition().

      Arguments

      eObject

      Required. An object containing information about the anchor position. It has two properties:

      Events

        • BackgroundTokenizer.on("update", function(Object e))

        Fires whenever the background tokeniziers between a range of rows are going to be updated.

        +

           

        Fires whenever the background tokeniziers between a range of rows are going to be updated.

        Arguments

        eObject

        Required. An object containing two properties, first and last, which indicate the rows of the region being updated.

        Methods

          • BackgroundTokenizer.fireUpdateEvent(Number firstRow, Number lastRow)

          Emits the 'update' event. firstRow and lastRow are used to define the boundaries of the region to be updated.

             

          Emits the 'update' event. firstRow and lastRow are used to define the boundaries of the region to be updated.

          diff --git a/api/command_manager.html b/api/command_manager.html index 6ac9425f..660d81d9 100644 --- a/api/command_manager.html +++ b/api/command_manager.html @@ -1,7 +1,7 @@ - CommandManager - Ace API

          Constructors

          TODO

          + CommandManager - Ace API

          Constructors

          TODO

             

          TODO

          Arguments

          platformString

          Required. Identifier for the platform; must be either 'mac' or 'win'

          commandsArray

          Required. A list of commands

          diff --git a/api/document.html b/api/document.html index 5d24bf24..696bb268 100644 --- a/api/document.html +++ b/api/document.html @@ -1,31 +1,31 @@ - Document - Ace API

          Contains the text of the document. Document can be attached to several EditSessions. At its core, Documents are just an array of strings, with each row in the document matching up to the array index.

          + Document - Ace API

          Contains the text of the document. Document can be attached to several EditSessions. At its core, Documents are just an array of strings, with each row in the document matching up to the array index.

          Constructors

          Creates a new Document. If text is included, the Document contains those strings; otherwise, it's empty.

             

          Creates a new Document. If text is included, the Document contains those strings; otherwise, it's empty.

          Arguments

          textString | Array

          Required. The starting text

          -

          Events

            • Document.on("change", function(Object e))

            Fires whenever the document changes.

            -

               

            Fires whenever the document changes.

            +

            Events

              • Document.on("change", function(Object e))

              Fires whenever the document changes.

              +

                 

              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: