Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
h-wang committed Mar 14, 2016
1 parent fd4b21e commit 255df02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ bower install ace-helper
## Use
To use the ace-helper, simply add ```class="ace-editor"``` to ```div``` or ```textarea```. It will create an Ace editor for you. If it's a textarea, it will create an Ace editor after the textarea and sync the content of the editor with the textarea, which makes it straight-forward to be submitted.

```
```html
<!-- jQuery -->
<script src=".../jquery.min.js"></script>

Expand All @@ -28,13 +28,13 @@ To use the ace-helper, simply add ```class="ace-editor"``` to ```div``` or ```te
## Parameters

Put the Ace parameters as data attributes in the HTML element to enable them.
```
```html
<textarea class="ace-editor" data-mode="css" data-theme="monokai"></textarea>
```

## Examples

Integrate with Symfony forms:
```
```html
{{ form_row(form.description, { 'attr': {'class': 'ace-editor', 'data-theme': 'twilight', 'data-mode':'handlebars'} }) }}
```

0 comments on commit 255df02

Please sign in to comment.