ngx-trumbowyg
Version:
This an Angular wrapper for [Trumbowyg WYSIWYG editor](https://alex-d.github.io/Trumbowyg/).
25 lines (24 loc) • 983 B
TypeScript
import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
import { ControlValueAccessor, NgControl } from '@angular/forms';
import { TrumbowygOptions } from '../configs/trumbowyg-options';
export declare abstract class EditorBase implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
protected editorControl: NgControl;
protected _config: TrumbowygOptions;
options: TrumbowygOptions | null;
placeholder: string | null;
protected _editor: ElementRef;
protected _initValue: string;
private _disabled;
private _onChange;
private _onTouch;
constructor(editorControl: NgControl, _config: TrumbowygOptions);
ngOnInit(): void;
ngAfterViewInit(): void;
registerOnChange(fn: () => void): void;
registerOnTouched(fn: () => void): void;
writeValue(value: any): void;
setDisabledState(disabled: boolean): void;
ngOnDestroy(): void;
private setContent(content);
private getContent();
}