1 | import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges, OnDestroy, AfterViewInit } from '@angular/core';
|
2 | import { ControlValueAccessor } from '@angular/forms';
|
3 | import { NgxWigToolbarService } from './ngx-wig-toolbar.service';
|
4 | import { TButton, commandFunction } from './config';
|
5 | import * as i0 from "@angular/core";
|
6 |
|
7 | export declare class NgxWigComponent implements AfterViewInit, OnInit, OnChanges, OnDestroy, ControlValueAccessor {
|
8 | private _ngWigToolbarService;
|
9 | private document;
|
10 | private window;
|
11 | content: string;
|
12 | placeholder: string;
|
13 | buttons: string;
|
14 | disabled: boolean;
|
15 | contentChange: EventEmitter<any>;
|
16 | ngxWigEditable: ElementRef;
|
17 | editMode: boolean;
|
18 | container: HTMLElement;
|
19 | toolbarButtons: TButton[];
|
20 | hasFocus: boolean;
|
21 | private _mutationObserver;
|
22 | constructor(_ngWigToolbarService: NgxWigToolbarService, document: any,
|
23 | window: any);
|
24 | execCommand(command: string | commandFunction, options?: string): boolean;
|
25 | ngOnInit(): void;
|
26 | ngAfterViewInit(): void;
|
27 | ngOnDestroy(): void;
|
28 | onContentChange(newContent: string): void;
|
29 | ngOnChanges(changes: SimpleChanges): void;
|
30 | onTextareaChange(newContent: string): void;
|
31 | writeValue(value: any): void;
|
32 | shouldShowPlaceholder(): boolean;
|
33 | private pasteHtmlAtCaret;
|
34 | registerOnChange(fn: any): void;
|
35 | registerOnTouched(fn: () => void): void;
|
36 | private propagateChange;
|
37 | propagateTouched: () => void;
|
38 | onBlur(): void;
|
39 | setDisabledState(isDisabled: boolean): void;
|
40 | static ɵfac: i0.ɵɵFactoryDef<NgxWigComponent, never>;
|
41 | static ɵcmp: i0.ɵɵComponentDefWithMeta<NgxWigComponent, "ngx-wig", never, { "content": "content"; "placeholder": "placeholder"; "buttons": "buttons"; "disabled": "disabled"; }, { "contentChange": "contentChange"; }, never, never>;
|
42 | }
|