Skip to content

bibitoo/ng2-medium-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published