editor.js

angular.module('homepage').
directive('editor', function () {
    return {
        controller: 'EditorController',
        restrict: 'E',
        replace: true,
        scope: {
            note: '=scopeObj',
            isEditable: '='
        },
        transclude: true,
        templateUrl: 'components/common-components/editor/editor.html'
    }
}).
controller('EditorController', function ($scope) {
    $scope.handlePaste = function (event) {
        //event.preventDefault();
        //event.stopPropagation();
        // var plaintext = event.originalEvent.clipboardData.getData('text/plain');
        // document.execCommand('inserttext', false, plaintext);
    };
});