1 /* MODS_XDS: not used for now
2 import { Component, OnDestroy, AfterViewInit, Output, EventEmitter, ElementRef } from '@angular/core';
5 selector: 'ngx-tiny-mce',
8 export class TinyMCEComponent implements OnDestroy, AfterViewInit {
10 @Output() editorKeyup = new EventEmitter<any>();
14 constructor(private host: ElementRef) { }
18 target: this.host.nativeElement,
19 plugins: ['link', 'paste', 'table'],
20 skin_url: 'assets/skins/lightgray',
23 editor.on('keyup', () => {
24 this.editorKeyup.emit(editor.getContent());
32 tinymce.remove(this.editor);