-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathng2-summernote.d.ts
60 lines (60 loc) · 1.67 KB
/
ng2-summernote.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { ElementRef, EventEmitter, NgZone } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/add/operator/toPromise';
export declare class Ng2Summernote {
private _elementRef;
private _zone;
private _http;
height: number;
minHeight: number;
maxHeight: number;
placeholder: string;
focus: boolean;
airMode: boolean;
dialogsInBody: string;
editable: boolean;
lang: string;
disableResizeEditor: string;
serverImgUp: boolean;
config: any;
/** URL for upload server images */
hostUpload: string;
/** Uploaded images server folder */
uploadFolder: string;
change: EventEmitter<any>;
private _config;
private _value;
constructor(_elementRef: ElementRef, _zone: NgZone, _http: Http);
value: any;
ngAfterViewInit(): void;
/**
* Value update process
*/
updateValue(value: any): void;
ngOnDestroy(): void;
private _imageUpload(dataUpload);
private _mediaDelete(fileUrl);
/**
* Set logical varibles from text input values
*
* @param any variable, logic varible for setting
* @param boolean defaultValue, this value will be set if variable is not set
*
* @return boolean variable, finally setted variable value
*/
private _setLogicVars(variable, defaultVal?);
/**
* Hanle error in console
*/
private _errHandle(err);
/**
* Implements ControlValueAccessor
*/
writeValue(value: any): void;
onChange(_: any): void;
onTouched(): void;
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
_onChangeCallback(_: any): void;
_onTouchedCallback(): void;
}