1 |
|
2 | import { EventEmitter, NgZone, QueryList, AfterViewInit, SimpleChanges, OnChanges, OnDestroy, ElementRef } from '@angular/core';
|
3 | import { CKButtonDirective } from './ckbutton.directive';
|
4 | import { CKGroupDirective } from './ckgroup.directive';
|
5 | import * as i0 from "@angular/core";
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare class CKEditorComponent implements OnChanges, AfterViewInit, OnDestroy {
|
12 | private zone;
|
13 | config: CKEDITOR.config;
|
14 | readonly: boolean;
|
15 | debounce: string;
|
16 | change: EventEmitter<CKEDITOR.eventInfo>;
|
17 | editorChange: EventEmitter<CKEDITOR.eventInfo>;
|
18 | ready: EventEmitter<CKEDITOR.eventInfo>;
|
19 | blur: EventEmitter<CKEDITOR.eventInfo>;
|
20 | focus: EventEmitter<CKEDITOR.eventInfo>;
|
21 | contentDom: EventEmitter<CKEDITOR.eventInfo>;
|
22 | fileUploadRequest: EventEmitter<CKEDITOR.eventInfo>;
|
23 | fileUploadResponse: EventEmitter<CKEDITOR.eventInfo>;
|
24 | paste: EventEmitter<CKEDITOR.eventInfo>;
|
25 | drop: EventEmitter<CKEDITOR.eventInfo>;
|
26 | host: ElementRef<HTMLTextAreaElement>;
|
27 | toolbarButtons: QueryList<CKButtonDirective>;
|
28 | toolbarGroups: QueryList<CKGroupDirective>;
|
29 | _value: string;
|
30 | instance: CKEDITOR.editor;
|
31 | debounceTimeout: number;
|
32 | private destroyed;
|
33 | |
34 |
|
35 |
|
36 | constructor(zone: NgZone);
|
37 | get value(): string;
|
38 | set value(v: string);
|
39 | ngOnChanges(changes: SimpleChanges): void;
|
40 | /**
|
41 | * On component destroy
|
42 | */
|
43 | ngOnDestroy(): void;
|
44 | /**
|
45 | * On component view init
|
46 | */
|
47 | ngAfterViewInit(): void;
|
48 | /**
|
49 | * On component view checked
|
50 | */
|
51 | ngAfterViewChecked(): void;
|
52 | /**
|
53 | * Value update process
|
54 | */
|
55 | updateValue(value: any): void;
|
56 | /**
|
57 | * CKEditor init
|
58 | */
|
59 | ckeditorInit(config: CKEDITOR.config): void;
|
60 | /**
|
61 | * Implements ControlValueAccessor
|
62 | */
|
63 | writeValue(value: string): void;
|
64 | onChange: (_: string) => void;
|
65 | onTouched: () => void;
|
66 | registerOnChange(fn: () => void): void;
|
67 | registerOnTouched(fn: () => void): void;
|
68 | private documentContains;
|
69 | static ɵfac: i0.ɵɵFactoryDeclaration<CKEditorComponent, never>;
|
70 | static ɵcmp: i0.ɵɵComponentDeclaration<CKEditorComponent, "ckeditor", never, { "config": "config"; "readonly": "readonly"; "debounce": "debounce"; "value": "value"; }, { "change": "change"; "editorChange": "editorChange"; "ready": "ready"; "blur": "blur"; "focus": "focus"; "contentDom": "contentDom"; "fileUploadRequest": "fileUploadRequest"; "fileUploadResponse": "fileUploadResponse"; "paste": "paste"; "drop": "drop"; }, ["toolbarButtons", "toolbarGroups"], never, false>;
|
71 | }
|