ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
29 lines (24 loc) • 842 B
text/typescript
import { Component, OnInit } from '@angular/core';
import { ControlWidget } from '@ohayo/form';
// tslint:disable-next-line:component-class-suffix
export class TinymceWidget extends ControlWidget implements OnInit {
static readonly KEY = 'tinymce';
config: {};
loading: string;
ngOnInit(): void {
this.loading = this.ui.loading || '加载中……';
this.config = this.ui.config || {};
}
change(value: string): void {
if (this.ui.change) this.ui.change(value);
this.setValue(value);
}
}