Angular directive for Trumbowyg editor.
- Angular
- jQuery
- Trumbowyg
cd trumbowyg-ng
to go into the project's root directorynpm install
to install development dependenciesnpm install -g bower grunt
to install bower and grunt command if you don't have them alreadybower install
to install dependenciesgrunt
to build the project
bower install trumbowyg-ng
##Add module to your angular app
angular.module('app',['trumbowyg-ng']);
##Use directive
<div trumbowyg-ng
ng-model="editorModel"
editor-config="{btns: ['viewHTML','bold','italic','|','link']}">
</div>
##Setup model
angular.module('app').controller('AppCtrl', function ($scope) {
$scope.editorModel = 'SKÅL !!!';
});
For more on Trumbowyg see http://alex-d.github.io/Trumbowyg/documentation.html
#Running tests
Following command will run both unit & End-to-End (e2e) tests
grunt tests
This project is under MIT license. See LICENSE file for details.