1.0.0 • Published 8 years ago
ng2-medium-editor v1.0.0
Angular2 - MediumEditor component
Use the MediumEditor (15.5.x) wysiwyg in your Angular2 application.
Installation
- Include MediumEditor javascript files in your application
- Install ng2-mediumeditor
- NPM :
npm install ng2-medium-editor
- NPM :
Sample (ES6)
import {Component} from 'angular2/core';
import {MediumContentEditor} from 'ng2-medium-editor';
@Component({
selector: 'sample',
directives: [MediumContentEditor],
template: `<meditor [(ngModel)]="data.content" class="editable" #content="ngForm" ngControl="content"></meditor>`
})
export class Sample{
constructor(){
this.editorContent = `<p>My HTML</p>`;
}
}
1.0.0
8 years ago