Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/atmajs/compo-aceeditor

Ace Editor Wrapper
https://github.com/atmajs/compo-aceeditor

Last synced: 6 days ago
JSON representation

Ace Editor Wrapper

Awesome Lists containing this project

README

        

### [Ace](http://ace.c9.io/) Component Wrapper

[![Bower version](https://badge.fury.io/bo/compo-ace.svg)](http://badge.fury.io/bo/compo-ace)

```scss
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

- [/examples](/examples)

```bash
# install atma toolkit
npm install atma
# run server
atma server

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

### Test
```bash
npm test
```

:copyright: MIT - Atma.js Project