ngx-medium-editor
v0.4.1
Published
by [@ysfMag](https://twitter.com/ysfMag)
Downloads
15
Readme
ngx-medium-editor
by @ysfMag
Installation
To install this library, run:
$ npm install ngx-medium-editor --save
$ npm install medium-editor --save
Consuming ngx-medium-editor library
From your Angular AppModule
:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import ngxMediumModule
import { ngxMediumModule } from 'ngx-medium-editor';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
// Specify this Module as an import
ngxMediumModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
You need to add css in your style:
<!-- import meduim-editor style in styles.css -->
@import "~medium-editor/dist/css/medium-editor.min.css";
@import "~medium-editor/dist/css/themes/default.min.css";
License
MIT © youssef-mag