@ec.components/tinymce

Wraps tinymce editor for optimal use in ec.components forms

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@ec.components/tinymce
0.7.02 years ago5 years agoMinified + gzip package size for @ec.components/tinymce in KB

Readme

@ec.components/tinymce
This package wraps the tinymce editor as an Angular Component.

Overview

Installation

  1. Install package

npm install @ec.components/tinymce --save

  1. Add Module

import { TinymceModule } from '@ec.components/tinymce';

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

  1. Add styles files to angular.json

"styles": [
  "node_modules/tinymce/skins/lightgray/skin.min.css",
  "node_modules/tinymce/skins/lightgray/content.min.css"
],

  1. Use it

<ec-tinymce [(ngModel)]="html" (change)="change($event)"></ec-tinymce>