I have a component that holds the following template:
<div>
{{textarea value=content autofocus="autofocus"}}
<button {{action 'cancel'}}>cancel</button>
</div>
How can I listen to a paste
event on this textarea in my component?
I tried to create a paste action but this doesn't seem to work:
App.EditableTextComponent = Ember.Component.extend({
templateName: 'components/editable-text',
actions: {
paste: function() {
console.log(arguments);
}
}
});