import { EventEmitter, OnChanges, SimpleChanges, AfterViewInit, OnDestroy, ElementRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { ToolbarConfig } from '../editor-config-interface'; import * as i0 from "@angular/core"; export declare class MarxEditorComponent implements OnChanges, AfterViewInit, OnDestroy, ControlValueAccessor { editorConfig: any; comment: EventEmitter; sendSavedFiles: EventEmitter; editorContainer: ElementRef; popup: EventEmitter; imageToBeShown: any; filesFromChild: any; html: string; innerText: string; lastChar: string; sel: any; startOffset: number; endOffset: number; format: boolean; node: any; tribute: string; flag: number; mentionConfig: { mentions: any[]; }; mentionid: number | string; mentionedNames: { id: number; name: string; }[]; mentionedDates: string[]; toolbarPlacement: 'top' | 'bottom'; oldRange: Range; savedLinks: any; toolbarConfig: ToolbarConfig; fontColor: string; backgroundColor: string; clicked: boolean; moreOptionsButton: boolean; isCollapsible: boolean; menuLeftWidth: number; menuRightWidth: number; constructor(); /** * @param event - Event which stores the files that are emitted from the file popup */ saveFiles(event: any): void; /** * @param event - Event which stores the image emitted from the image popup */ saveImage(event: any): void; resetToolbar(): void; onChange: any; onTouch: any; set htmlVal(html: any); writeValue(value: string, source?: string): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; ngAfterViewInit(): void; getMenuWidth({ left, right }: { left: any; right: any; }): void; immageResize(): void; ngOnDestroy(): void; /** * * @param event - Event fired whenever there is a selection change */ selectionChange(event: any): void; /** * Set the default font color and background color */ setFontAndbackgroundColor(): void; getFontStyle(elem: any): string; checkParent(elem: any, tagName: string): boolean; ngOnChanges(changes: SimpleChanges): void; /** * * @param container - Get the last character from editor */ getPrecedingCharacter(container: any): string; /** * * @param elem - Check if the operation applied belongs to the particular instance of editor */ checkValidOperation(elem: any): boolean; /** * When editor is blurred */ blur(): void; /** * When contenteditable is blurred */ blurContentEditable(): void; /** * Focus on the editor */ focus(): void; /** * @param event - This parameter is an event that is occurred whenever we make changes inside the div contenteditable */ setValue(innerText: string): void; /** * This function is called whenever the mention tab is closed */ mentionClosed(): void; /** * @param event - This parameter is an event that is occurred whenever we paste things inside the div contenteditable */ onPaste(event: any): void; filterStyles(html: string | any): string; /** * * @param rtf - Represents Rich Text which is pasted from the word into the editor */ cleanPaste(rtf: string): string; /** * * @param event - Event triggered when one of the options in the toolbar is clicked */ toolbarClicked(event: any): void; /** * * @param id- represents the toolbar button that was clicked * @param value - Value that is passed from the toolbar to editor to perform operations */ toolbarOperations(id: string, value: any): void; /** * * @param size - Represents the size of the font */ setFontSize(size: string): void; /** * Function inserts blockquote inside the editor */ insertBlockQuote(): void; /** * @param event - Event which stores the link emitted from the link popup */ insertLink(event: any): void; reachTextNode(tagName: string): void; /** * * @param elem - The element whose parent element we need to find * @param tagName - Tag name to check if it is the parent node of elem */ getParent(elem: any, tagName: string): any; /** * Output event to export comment data and cleanup the editor */ commentAction(): void; /** * * @param char - Represents the tribute that was clicked from the toolbar i.e @ or # */ insertTribute(char: string): void; clickedOnImage(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=marx-editor.component.d.ts.map