@ec.components/medium-editor

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

Usage no npm install needed!

<script type="module">
  import ecComponentsMediumEditor from 'https://cdn.skypack.dev/@ec.components/medium-editor';
</script>

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

2. Add Module

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

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

3. Use it

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