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
angular.module('app',['trumbowyg-ng']);
<div trumbowyg-ng
ng-model="editorModel"
ng-disabled="disabledState"
editor-config="{btns: ['viewHTML','bold','italic','|','link']}">
</div>
angular.module('app').controller('AppCtrl', function ($scope) {
$scope.editorModel = 'SKÅL !!!';
});
For more on Trumbowyg see http://alex-d.github.io/Trumbowyg/documentation.html
Following command will run both unit & End-to-End (e2e) tests
grunt tests
This project is under MIT license. See LICENSE file for details.