@ec.components/medium-editor

Wraps medium-editor for optimal use in ec.components forms

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@ec.components/medium-editor
0.6.0a year ago5 years agoMinified + gzip package size for @ec.components/medium-editor in KB

Readme

@ec.components/medium-editor
This package wraps the medium-editor as an Angular Directive.

Overview

Installation

  1. Install package

npm install @ec.components/medium-editor --save

  1. Add Module

import { MediumModule } from '@ec.components/medium-editor';

@NgModule({
  imports: [MediumModule],
})
export class AppModule {}

  1. Use it

<ec-medium-editor
  [(model)]="myHTML"
  [options]="{'toolbar': {'buttons': ['bold', 'italic', 'underline', 'h1', 'h2', 'h3']}}"
></ec-medium-editor>