UNPKG

@covalent/text-editor

Version:

Teradata UI Platform Text Editor Module

71 lines (67 loc) 2.53 kB
import * as i0 from '@angular/core'; import { AfterViewInit, OnDestroy, ElementRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; declare const EasyMDE: any; declare class TdTextEditorComponent implements AfterViewInit, OnDestroy, ControlValueAccessor { private _zone; private _value; private _easyMDE; private _fromEditor; textarea: ElementRef; options: any; propagateChange: (_: any) => any; onTouched: () => any; /** * value?: string * Value in the Editor after async getEditorContent was called */ set value(value: string); get value(): string; get easyMDE(): typeof EasyMDE; /** * Implemented as part of ControlValueAccessor. */ writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; ngAfterViewInit(): void; ngOnDestroy(): void; isPreviewActive(): boolean; isSideBySideActive(): boolean; isFullscreenActive(): boolean; clearAutosavedValue(): void; toTextArea(): void; toggleBold(): void; toggleItalic(): void; toggleStrikethrough(): void; toggleHeadingSmaller(): void; toggleHeadingBigger(): void; toggleHeading1(): void; toggleHeading2(): void; toggleHeading3(): void; toggleCodeBlock(): void; toggleBlockquote(): void; toggleUnorderedList(): void; toggleOrderedList(): void; cleanBlock(): void; drawLink(): void; drawImage(): void; drawTable(): void; drawHorizontalRule(): void; togglePreview(): void; toggleSideBySide(): void; toggleFullScreen(): void; private _onChange; static ɵfac: i0.ɵɵFactoryDeclaration<TdTextEditorComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TdTextEditorComponent, "td-text-editor", never, { "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>; } /** * @deprecated This module is deprecated and will be removed in future versions. * Please migrate to using standalone components as soon as possible. */ declare class CovalentTextEditorModule { static ɵfac: i0.ɵɵFactoryDeclaration<CovalentTextEditorModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentTextEditorModule, never, [typeof TdTextEditorComponent], [typeof TdTextEditorComponent]>; static ɵinj: i0.ɵɵInjectorDeclaration<CovalentTextEditorModule>; } export { CovalentTextEditorModule, TdTextEditorComponent };