mamedov-rustam / ng2-html-editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ng2-html-editor

Installation

To install this library, run:

$ npm install && npm run build

Consuming your library

Run from ng2-html-editor/dist directory

$ sudo npm link

Run from your project directory

$ npm link html-editor

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import html-editor library
import { HtmlEditorModule } from 'html-editor';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify your library as an import
    HtmlEditorModule.forRoot()
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Now you can use component from this lib in the following manner:

<html-editor>This text will disappear when app loaded</html-editor>

About


Languages

Language:JavaScript 77.4%Language:TypeScript 17.0%Language:HTML 5.6%