A rich wysiwyg text editor directive for angularjs.
npm install angular-trix
npm install angular-trix --save
`
Or bower, too.
`
bower install angular-trix --save
`
If you're not into package management, just download a ZIP file.
Setup
#### First, include angularjs, trix.js and trix.css into your document.
`html
`
trix.css includes default styles for the Trix toolbar, editor, and attachments. Skip this file if you prefer to define these styles yourself.
To use your own polyfills, or to target only browsers that support all of the required standards, include trix-core.js instead.
#### Then Include angular-trix.js.
`html
`
Add angularTrix dependency to your module
`javascript
var myApp = angular.module('app', ['angularTrix']);
`
#### Create trix-editor
Place an empty tag on the page. Trix will automatically insert a separate before the editor.
Like an HTML