0.0.3 • Published 7 years ago
ngx-tinymce-editor v0.0.3
ngx-tinymce-editor 
Tinymce Components build with Angular.
Installation instructions
- Install
tinymcefromnpm - Install
ngx-tinymce-editorfromnpm
npm install tinymce --save
npm install ngx-tinymce-editor --saveRecommend:
- Import the
ngx-tinymce-editorin to your rootAppModule. - Copy the
node_modules/tinymce/skinsin to your directoryassets/tinymce/skins.
import { NgxTinymceModule } from 'ngx-tinymce-editor';
@NgModule({
imports: [
NgxTinymceModule.forRoot()
]
})
export class AppModule { }Usage
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<ngx-tinymce-editor [(content)]="content" [upload]="{url:'http://files.upload.url',fileKey:'file'}"></ngx-tinymce-editor>`
})
export class AppComponent {
content = ``;
}How to use it with:
angular-cliplease refer to Installation instructions.
API
| Name | Type | Default | Description |
|---|---|---|---|
| content | string | "" | editor content |
| height | string | "500px" | editor content |
| upload | object | null | upload image config |
| readonly | any | false | editor read only |
Troubleshooting
Please follow this guidelines when reporting bugs and feature requests:
- Use GitHub Issues board to report bugs and feature requests (not our email address)
- 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)