2.0.4 • Published 6 years ago

ng-trumbowyg v2.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

NgTrumbowyg

NgTrumbowyg is an angular 5 implementation for Trumbowyg WYSIWYG editor. Requires trumbowyg package from npm.

Installation

  1. Install npm module:
npm install ng-trumbowyg
  1. Modify assets and styles 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"
      ]
  1. 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
2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago