##Usage it's just attribute directive for textarea:
<textarea ng-wig="text1" class="editor1"></textarea>
##Installation
ngWig could be simply installed via npm:
npm install ng-wig
or via bower:
bower install ng-wig
More information on ngWig site
[Demo] (http://stevermeister.github.io/ngWig/demo/)
![Screenshot] (http://stevermeister.github.io/ngWig/images/ng-wig-demo.png)
##OnPaste Hook
If you need access to the pasted content you can provide a function to be called when paste
event is fired.
// in your controller
$scope.onPaste = function(pasteEvent, originalTextContent){
// here you can cancel the event
// or just alter the pasteContent
var pasteContent = pasteEvent.clipboardData.getData('text/plain');
// it is required to return it using a promise
return $q.when(originalTextContent + paste.content.slice(0, 33));
};
<textarea ng-wig="text1" on-paste="onPaste" class="editor1"></textarea>
npm install
npm run devSetup