import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { AngularEditorConfig } from './config'; import { AngularEditorToolbarComponent } from './angular-editor-toolbar.component'; import { AngularEditorService } from './angular-editor.service'; import { DomSanitizer } from '@angular/platform-browser'; import { LangService } from './services/lang.service'; import { CommandName, CustomButtonClicked, CustomCommandName, DirectoryChild, FtpRequest, SelectedObject } from './common/common-interfaces'; import { MatDialog } from '@angular/material/dialog'; import { SelectOption } from './ae-select/ae-select.component'; import * as i0 from "@angular/core"; export declare class AngularEditorComponent implements OnInit, ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy { private r; private editorService; private doc; private sanitizer; private cdRef; private autoFocus; private langService; private dialog; constructor(r: Renderer2, editorService: AngularEditorService, doc: any, sanitizer: DomSanitizer, cdRef: ChangeDetectorRef, defaultTabIndex: string, autoFocus: any, langService: LangService, dialog: MatDialog); onChange: (value: string) => void; onTouched: () => void; modeVisual: boolean; showPlaceholder: boolean; disabled: boolean; focused: boolean; touched: boolean; changed: boolean; focusInstance: any; blurInstance: any; sen: { [p: string]: string; }; selObject: SelectedObject; editorFonts: SelectOption[]; timerHandle: any; private ngUnsubscribe; id: string; config: AngularEditorConfig; tabIndex: number | null; cultureId: number; ftpLink: DirectoryChild | null; placeholder: string; html: any; textArea: ElementRef; editorWrapper: ElementRef; editorToolbar: AngularEditorToolbarComponent; viewMode: EventEmitter; /** emits `blur` event when focused out from the textarea */ blurEvent: EventEmitter; /** emits `focus` event when focused in to the textarea */ focusEvent: EventEmitter; ftpNeeded: EventEmitter; customButtonClicked: EventEmitter; tabindex: number; private static getParentTableId; onFocus(): void; onClick(evt: MouseEvent): void; ngOnInit(): void; ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; private static getLanCodeFromCultureId; private static renameToWebp; executeCustomButtonCommand(command: CustomCommandName): void; /** * Executed command from editor header buttons * @param command string from triggerCommand */ executeCommand(command: CommandName): void; /** * focus event */ onTextAreaFocus(event: FocusEvent): void; /** * @description fires when cursor leaves textarea */ onTextAreaMouseOut(): void; /** * blur event */ onTextAreaBlur(event: FocusEvent): void; /** * focus the text area when the editor is focused */ focus(): void; /** * Executed from the contenteditable section while the input property changes * @param element html element from contenteditable */ onContentChange(element: any): void; /** * Set the function to be called * when the control receives a change event. * * @param fn a function */ registerOnChange(fn: any): void; /** * Set the function to be called * when the control receives a touch event. * * @param fn a function */ registerOnTouched(fn: any): void; /** * Write a new value to the element. * * @param value value to be executed when there is a change in contenteditable */ writeValue(value: any): void; /** * refresh view/HTML of the editor * * @param value html string from the editor */ refreshView(value: string): void; /** * toggles placeholder based on input string * * @param value A HTML string from the editor */ togglePlaceholder(value: boolean): void; /** * Implements disabled state for this element * * @param isDisabled Disabled flag */ setDisabledState(isDisabled: boolean): void; /** * toggles editor mode based on bToSource bool * * @param bToSource A boolean value from the editor */ toggleEditorMode(bToSource: boolean): void; /** * toggles editor buttons when cursor moved or positioning * * Send a node array from the contentEditable of the editor */ exec(): void; private configure; getFonts(): { label: string; value: string; }[]; getCustomTags(): string; ngOnDestroy(): void; filterStyles(html: string): string; editorPaste(): boolean; editObject(): void; /** * opens insert table dialog * and inserts table on result */ insertTable(config: AngularEditorConfig, editorId: string): void; private editImage; private deleteImage; private openLinkDialog; private insertImageUrl; private addRow; private addColumn; private deleteColumn; private deleteRow; private deleteTable; private editTable; private setColumnWidths; insertVideoDialog(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=angular-editor.component.d.ts.map