Skip to content

Commit

Permalink
Changed event binding way
Browse files Browse the repository at this point in the history
  • Loading branch information
sridhar441 committed Jan 7, 2020
1 parent 9d8ba25 commit f31b2fd
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,20 @@ aurelia.use.plugin('aurelia-froala-editor', config => {
```

#### Events
One can bind events to editor as given below.

All the [event handlers](https://www.froala.com/wysiwyg-editor/docs/events) are also available:
>All the [event handlers](https://www.froala.com/wysiwyg-editor/docs/events) are also available.
```html
<froala-editor
value.two-way="value"
event-handlers.bind = "{
'paste.afterCleanup': processPaste
}"></froala-editor>
config.bind="tempCOnfig"></froala-editor>
```
```js
events: {
'focus': function () {
console.log('Focus');
}
}
```

## License
Expand Down

0 comments on commit f31b2fd

Please sign in to comment.