compo-ace

Ace Editor wrapper for MaskJS


License
MIT
Install
bower install compo-ace

Documentation

Ace Component Wrapper

Bower version

a:aceEditor;

Attributes

Attribute Description
x-mode Ace mode (default javascript)
x-theme Ace theme (default monokai)
x-live Define this attribute, to emit aceEditor_Changed signal on each keypress, otherwise this signal is deferred until blur event

Signals

Signal Description
aceEditor_Changed (sender, text) is emitted each time text is changed

API

  • editor #

    Ace Editor instance

  • get() #

    Get text

  • set(value) #

    Set text

Dependencies

  • IncludeJS

Examples

# install atma toolkit
npm install atma
# run server
atma server

# navigate `http://localhost:5777/examples/simple.html`

Test

npm test

©️ MIT - Atma.js Project