0.0.5 • Published 5 years ago
ng-trix-lib v0.0.5
NgTrixLib Trix 1.1.1
This library was generated with Angular CLI version 7.2.0.
Code scaffolding
Run npm i --save ng-trix-lib
.
How To Use
- install trix - npm i --save trix.
add to angular.json project trix files
"styles": "node_modules/trix/dist/trix.css"
"scripts": "node_modules/trix/dist/trix.js"
use as in 'https://www.npmjs.com/package/trix#creating-an-editor'
Example
<input id="x" type="hidden" name="content">
<trix-editor input="x"></trix-editor>
Example Using ngModel
<trix-editor [(ngModel)]="putYourClassVar"></trix-editor>