JSPM

  • Created
  • Published
  • Downloads 3672
  • Score
    100M100P100Q114625F
  • License MIT

Angular for tinymce

Package Exports

  • ngx-tinymce

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ngx-tinymce) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ngx-tinymce NPM version

Tinymce Components build with Angular.

Installation instructions

Install ngx-tinymce from npm

npm install ngx-tinymce --save

Recommend: You will need tinymce.min.js file via Build Customizer generate.

Import the ngx-tinymce in to your root AppModule.

import { NgxTinymceModule } from 'ngx-tinymce';

@NgModule({
    imports: [
        NgxTinymceModule.forRoot({
            baseURL: './assets/tinymce/',
            // or cdn
            baseURL: '//cdn.bootcss.com/tinymce/4.7.4/'
        })
    ]
})
export class AppModule { }

Usage

import { Component } from '@angular/core';

@Component({
  selector: 'my-app',
  template: `<tinymce [(ngModel)]="html"></tinymce>`
})
export class AppComponent  {
    html = ``;
}

How to use it with:

  • angular-cli please refer to Installation instructions.
  • stackblitz sample available here.

API

Name Type Default Summary
config any see configure
loading string,TemplateRef - Loading status of tinymce

Troubleshooting

Please follow this guidelines when reporting bugs and feature requests:

  1. Use GitHub Issues board to report bugs and feature requests (not our email address)
  2. Please always write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.

Thanks for understanding!

License

The MIT License (see the LICENSE file for the full text)