ng-trumbowyg
v2.0.4
Published
NgTrumbowyg is an angular 5 implementation for Trumbowyg WYSIWYG editor. Requires ```trumbowyg``` package from npm.
Downloads
6
Readme
NgTrumbowyg
NgTrumbowyg is an angular 5 implementation for Trumbowyg WYSIWYG editor. Requires trumbowyg
package from npm.
Installation
- Install npm module:
npm install ng-trumbowyg
- Modify
assets
andstyles
section in.angular.cli.json
"assets": [
"assets",
{ "glob": "icons.svg", "input": "../node_modules/trumbowyg/dist/ui/", "output": "./trumbowyg/" }
]
...
"styles": [
"styles.scss",
"../node_modules/trumbowyg/dist/ui/trumbowyg.min.css"
]
- Add TrumbowygModule to the main module
import { TrumbowygModule } from 'ng-trumbowyg';
imports: [
TrumbowygModule,
...
]
Usage
<ng-trumbowyg [(ngModel)]="property"></ng-trumbowyg>
Properties
- placeholder - type: string, default: null, description: Text for the input
- disabled - type: boolean, default: false, description: Whether to disable editor