ng2-medium-editor
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

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>`;
  }
}

Package Sidebar

Install

npm i ng2-medium-editor

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bibitoo712