UNPKG

angular-froala-wysiwyg-2.7.1

Version:

Angular 2 and Angular 4 bindings for Froala WYSIWYG HTML rich text editor

39 lines (38 loc) 1.28 kB
import { ElementRef, EventEmitter, NgZone } from '@angular/core'; import { ControlValueAccessor } from "@angular/forms"; export declare class FroalaEditorDirective implements ControlValueAccessor { private zone; private _opts; private _$element; private SPECIAL_TAGS; private INNER_HTML_ATTR; private _hasSpecialTag; private _editor; private _model; private _listeningEvents; private _editorInitialized; private _oldModel; constructor(el: ElementRef, zone: NgZone); onChange: (_: any) => void; onTouched: () => void; writeValue(content: any): void; registerOnChange(fn: (_: any) => void): void; registerOnTouched(fn: () => void): void; froalaEditor: any; froalaModel: any; private updateEditor(content); froalaModelChange: EventEmitter<any>; froalaInit: EventEmitter<Object>; private updateModel(); private registerEvent(element, eventName, callback); private initListeners(); private registerFroalaEvents(); private createEditor(); private setHtml(); private setContent(firstTime?); private destroyEditor(); private getEditor(); private generateManualController(); ngOnInit(): void; ngOnDestroy(): void; }