/** * @license * Copyright Datorama. All Rights Reserved. * * Use of this source code is governed by an Apache License 2.0 license that can be * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE */ import { AfterViewInit, ElementRef, NgZone, OnDestroy } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { BaseCustomControl } from '../custom-control/base-custom-control'; import { HttpClient } from '@angular/common/http'; import { CoreConfig } from '../config'; declare global { interface Window { tinymce: any; tinyMCEPreInit: any; } } export declare class DatoRichTextDirective extends BaseCustomControl implements OnDestroy, AfterViewInit, ControlValueAccessor { private ngZone; private http; private host; private config; plugins: string | undefined; toolbar: string | string[]; menubar: string | string[] | null; inline: boolean | undefined; options: { [key: string]: any; } | undefined; width: number; height: number; autocompleteOptions: {}; set disabled(val: boolean); forcePlainTextPasting: boolean; defaultFont: string; format: string; isOneLine: boolean; get disabled(): boolean; private _disabled; private initialValue; private editor; private readonly defaultPlugins; private readonly defaultToolbar; constructor(ngZone: NgZone, http: HttpClient, host: ElementRef, config: CoreConfig); ngAfterViewInit(): void; private loadLib; private loadAutoCompleteStyle; private initEditor; private defaultOptions; private init; ngOnDestroy(): void; writeValue(value: string | null): void; setDisabledState(isDisabled: boolean): void; clearEditorContentStyling(editor: any, event: any): void; }