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

0.4.1 • Public • Published

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

Package Sidebar

Install

npm i ngx-medium-editor

Weekly Downloads

8

Version

0.4.1

License

MIT

Unpacked Size

15.5 kB

Total Files

8

Last publish

Collaborators

  • ysfmag