I am trying to access the paste event in the browser and override it. However event.clipboardData is undefined. Currently all I have is this:
function handlePaste (event) {
    event.preventDefault();
    console.log("Handling paste");
    console.log(event.clipboardData);
}
Edit:
It is part of a directive in Angular and I am running it in Chrome:
app.directive('safePaste', [function() {
function handlePaste (event) {
    event.preventDefault();
    console.log("Handling paste");
    console.log(event.clipboardData);
}
/*
 * Declaration
 */
var declaration = {};
declaration.restrict = 'A';
declaration.link = function(scope, element, attr) {
    // Attach the paste handler
    element.on('paste', handlePaste);
    // Register to remove the paste handler
    scope.$on('$destroy', function() {
        element.off('paste', handlePaste);
    });
};
return declaration;
} 
]);
HTML:
<li ng-repeat="note in notes | reverse">
     <a id="note" href="#">
        <h2 id="note-title" data-note-id="{{ note.id }}" safe-paste> {{ note.title | limitTo : 16 }}</h2>
            <p id="note-content" data-note-id="{{ note.id }}" safe-paste> {{ note.text | limitTo : 200 }} </p>
            <p id="info-note-save" hidden="true" class="text-center">Press enter to save</p>
     </a>
</li>
 
     
    