@firestitch/html-editor 12.5.0 → 12.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/modules/html-editor/classes/plugin.d.ts +7 -7
- package/app/modules/html-editor/components/html-editor/html-editor.component.d.ts +58 -58
- package/app/modules/html-editor/consts/paragraph-buttons.const.d.ts +1 -1
- package/app/modules/html-editor/consts/rich-buttons.const.d.ts +1 -1
- package/app/modules/html-editor/consts/text-buttons.const.d.ts +1 -1
- package/app/modules/html-editor/enums/default-plugin.enum.d.ts +16 -16
- package/app/modules/html-editor/fs-html-editor.module.d.ts +43 -43
- package/app/modules/html-editor/injects/config.inject.d.ts +3 -3
- package/app/modules/html-editor/interfaces/html-editor-config.d.ts +40 -40
- package/app/modules/html-editor/interfaces/plugin-button.d.ts +12 -12
- package/app/modules/html-editor/interfaces/plugin-config.d.ts +5 -5
- package/app/modules/html-editor/plugins/checklist.plugin.d.ts +7 -7
- package/app/modules/html-editor/plugins/code.plugin.d.ts +9 -9
- package/app/modules/html-editor/plugins/configs/mention-plugin.config.d.ts +13 -13
- package/app/modules/html-editor/plugins/configs/screen-record-plugin.config.d.ts +7 -7
- package/app/modules/html-editor/plugins/mention.plugin.d.ts +15 -15
- package/app/modules/html-editor/plugins/realtime.plugin.d.ts +7 -7
- package/app/modules/html-editor/plugins/screen-record.plugin.d.ts +11 -11
- package/app/modules/html-editor/services/froala-loader.service.d.ts +21 -21
- package/app/modules/html-renderer/components/html-renderer/html-renderer.component.d.ts +12 -12
- package/app/modules/html-renderer/fs-html-renderer.module.d.ts +8 -8
- package/bundles/firestitch-html-editor.umd.js +1382 -1371
- package/bundles/firestitch-html-editor.umd.js.map +1 -1
- package/esm2015/app/modules/html-editor/classes/plugin.js +4 -4
- package/esm2015/app/modules/html-editor/components/html-editor/html-editor.component.js +516 -504
- package/esm2015/app/modules/html-editor/consts/paragraph-buttons.const.js +9 -9
- package/esm2015/app/modules/html-editor/consts/rich-buttons.const.js +6 -6
- package/esm2015/app/modules/html-editor/consts/text-buttons.const.js +18 -18
- package/esm2015/app/modules/html-editor/enums/default-plugin.enum.js +1 -1
- package/esm2015/app/modules/html-editor/fs-html-editor.module.js +68 -68
- package/esm2015/app/modules/html-editor/injects/config.inject.js +3 -3
- package/esm2015/app/modules/html-editor/interfaces/html-editor-config.js +1 -1
- package/esm2015/app/modules/html-editor/interfaces/plugin-button.js +1 -1
- package/esm2015/app/modules/html-editor/interfaces/plugin-config.js +1 -1
- package/esm2015/app/modules/html-editor/plugins/checklist.plugin.js +34 -34
- package/esm2015/app/modules/html-editor/plugins/code.plugin.js +62 -62
- package/esm2015/app/modules/html-editor/plugins/configs/mention-plugin.config.js +1 -1
- package/esm2015/app/modules/html-editor/plugins/configs/screen-record-plugin.config.js +1 -1
- package/esm2015/app/modules/html-editor/plugins/mention.plugin.js +86 -86
- package/esm2015/app/modules/html-editor/plugins/realtime.plugin.js +12 -12
- package/esm2015/app/modules/html-editor/plugins/screen-record.plugin.js +88 -88
- package/esm2015/app/modules/html-editor/services/froala-loader.service.js +88 -88
- package/esm2015/app/modules/html-renderer/components/html-renderer/html-renderer.component.js +28 -28
- package/esm2015/app/modules/html-renderer/fs-html-renderer.module.js +25 -25
- package/esm2015/firestitch-html-editor.js +4 -4
- package/esm2015/public_api.js +13 -13
- package/fesm2015/firestitch-html-editor.js +983 -971
- package/fesm2015/firestitch-html-editor.js.map +1 -1
- package/firestitch-html-editor.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +18 -18
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PluginConfig } from './../interfaces/plugin-config';
|
|
2
|
-
export declare class Plugin {
|
|
3
|
-
config: PluginConfig;
|
|
4
|
-
editor: any;
|
|
5
|
-
initialize(): void;
|
|
6
|
-
destroy(): void;
|
|
7
|
-
}
|
|
1
|
+
import { PluginConfig } from './../interfaces/plugin-config';
|
|
2
|
+
export declare class Plugin {
|
|
3
|
+
config: PluginConfig;
|
|
4
|
+
editor: any;
|
|
5
|
+
initialize(): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { FsHtmlEditorConfig } from '../../interfaces/html-editor-config';
|
|
5
|
-
import { FsFroalaLoaderService } from '../../services/froala-loader.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FsHtmlEditorComponent implements OnInit, AfterViewInit, ControlValueAccessor, Validator, OnDestroy {
|
|
8
|
-
private _defaultConfig;
|
|
9
|
-
private _cdRef;
|
|
10
|
-
private _fr;
|
|
11
|
-
classFocused: boolean;
|
|
12
|
-
classDisabled: boolean;
|
|
13
|
-
elRef: ElementRef;
|
|
14
|
-
config: FsHtmlEditorConfig;
|
|
15
|
-
initialized: boolean;
|
|
16
|
-
private _editor;
|
|
17
|
-
private _html;
|
|
18
|
-
private _initialize$;
|
|
19
|
-
private _froalaReady$;
|
|
20
|
-
private _destroy$;
|
|
21
|
-
constructor(_defaultConfig: any, _cdRef: ChangeDetectorRef, _fr: FsFroalaLoaderService);
|
|
22
|
-
onChange: (data: any) => void;
|
|
23
|
-
onTouched: () => void;
|
|
24
|
-
get el(): any;
|
|
25
|
-
get html(): string;
|
|
26
|
-
get editor(): any;
|
|
27
|
-
get froalaLoaded$(): Observable<boolean>;
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
ngAfterViewInit(): void;
|
|
30
|
-
hasContent(): boolean;
|
|
31
|
-
initialize(options?: any): void;
|
|
32
|
-
private _processImageUpload;
|
|
33
|
-
uninitializedClick(event: UIEvent): void;
|
|
34
|
-
updateSize(): void;
|
|
35
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
36
|
-
focus(options?: {
|
|
37
|
-
cursorPosition?: 'start' | 'end';
|
|
38
|
-
}): void;
|
|
39
|
-
clear(): void;
|
|
40
|
-
disable(): void;
|
|
41
|
-
setHtml(html: any): void;
|
|
42
|
-
writeValue(html: string): void;
|
|
43
|
-
registerOnChange(fn: (data: any) => void): void;
|
|
44
|
-
registerOnTouched(fn: () => void): void;
|
|
45
|
-
ngOnDestroy(): void;
|
|
46
|
-
destroy(): void;
|
|
47
|
-
private _createConfig;
|
|
48
|
-
private _change;
|
|
49
|
-
private _initButtons;
|
|
50
|
-
private _initPlugins;
|
|
51
|
-
private _createOptions;
|
|
52
|
-
private _listenLazyInit;
|
|
53
|
-
private _contentChanged;
|
|
54
|
-
private _setupFroala;
|
|
55
|
-
private _getTextNode;
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlEditorComponent, [{ optional: true; }, null, null]>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsHtmlEditorComponent, "fs-html-editor", never, { "config": "config"; }, {}, never, never>;
|
|
58
|
-
}
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FsHtmlEditorConfig } from '../../interfaces/html-editor-config';
|
|
5
|
+
import { FsFroalaLoaderService } from '../../services/froala-loader.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FsHtmlEditorComponent implements OnInit, AfterViewInit, ControlValueAccessor, Validator, OnDestroy {
|
|
8
|
+
private _defaultConfig;
|
|
9
|
+
private _cdRef;
|
|
10
|
+
private _fr;
|
|
11
|
+
classFocused: boolean;
|
|
12
|
+
classDisabled: boolean;
|
|
13
|
+
elRef: ElementRef;
|
|
14
|
+
config: FsHtmlEditorConfig;
|
|
15
|
+
initialized: boolean;
|
|
16
|
+
private _editor;
|
|
17
|
+
private _html;
|
|
18
|
+
private _initialize$;
|
|
19
|
+
private _froalaReady$;
|
|
20
|
+
private _destroy$;
|
|
21
|
+
constructor(_defaultConfig: any, _cdRef: ChangeDetectorRef, _fr: FsFroalaLoaderService);
|
|
22
|
+
onChange: (data: any) => void;
|
|
23
|
+
onTouched: () => void;
|
|
24
|
+
get el(): any;
|
|
25
|
+
get html(): string;
|
|
26
|
+
get editor(): any;
|
|
27
|
+
get froalaLoaded$(): Observable<boolean>;
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
ngAfterViewInit(): void;
|
|
30
|
+
hasContent(): boolean;
|
|
31
|
+
initialize(options?: any): void;
|
|
32
|
+
private _processImageUpload;
|
|
33
|
+
uninitializedClick(event: UIEvent): void;
|
|
34
|
+
updateSize(): void;
|
|
35
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
36
|
+
focus(options?: {
|
|
37
|
+
cursorPosition?: 'start' | 'end';
|
|
38
|
+
}): void;
|
|
39
|
+
clear(): void;
|
|
40
|
+
disable(): void;
|
|
41
|
+
setHtml(html: any): void;
|
|
42
|
+
writeValue(html: string): void;
|
|
43
|
+
registerOnChange(fn: (data: any) => void): void;
|
|
44
|
+
registerOnTouched(fn: () => void): void;
|
|
45
|
+
ngOnDestroy(): void;
|
|
46
|
+
destroy(): void;
|
|
47
|
+
private _createConfig;
|
|
48
|
+
private _change;
|
|
49
|
+
private _initButtons;
|
|
50
|
+
private _initPlugins;
|
|
51
|
+
private _createOptions;
|
|
52
|
+
private _listenLazyInit;
|
|
53
|
+
private _contentChanged;
|
|
54
|
+
private _setupFroala;
|
|
55
|
+
private _getTextNode;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlEditorComponent, [{ optional: true; }, null, null]>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsHtmlEditorComponent, "fs-html-editor", never, { "config": "config"; }, {}, never, never>;
|
|
58
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ParagraphButtons: string[];
|
|
1
|
+
export declare const ParagraphButtons: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const RichButtons: string[];
|
|
1
|
+
export declare const RichButtons: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TextButtons: string[];
|
|
1
|
+
export declare const TextButtons: string[];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare const enum FroalaPlugin {
|
|
2
|
-
Align = "align",
|
|
3
|
-
Colors = "colors",
|
|
4
|
-
Image = "image",
|
|
5
|
-
Link = "link",
|
|
6
|
-
Lists = "lists",
|
|
7
|
-
ParagraphFormat = "paragraph_format",
|
|
8
|
-
Table = "table",
|
|
9
|
-
Url = "url",
|
|
10
|
-
Video = "video",
|
|
11
|
-
Quote = "quote",
|
|
12
|
-
Draggable = "draggable",
|
|
13
|
-
FontSize = "font_size",
|
|
14
|
-
QuickInsert = "quick_insert",
|
|
15
|
-
LineHeight = "line_height"
|
|
16
|
-
}
|
|
1
|
+
export declare const enum FroalaPlugin {
|
|
2
|
+
Align = "align",
|
|
3
|
+
Colors = "colors",
|
|
4
|
+
Image = "image",
|
|
5
|
+
Link = "link",
|
|
6
|
+
Lists = "lists",
|
|
7
|
+
ParagraphFormat = "paragraph_format",
|
|
8
|
+
Table = "table",
|
|
9
|
+
Url = "url",
|
|
10
|
+
Video = "video",
|
|
11
|
+
Quote = "quote",
|
|
12
|
+
Draggable = "draggable",
|
|
13
|
+
FontSize = "font_size",
|
|
14
|
+
QuickInsert = "quick_insert",
|
|
15
|
+
LineHeight = "line_height"
|
|
16
|
+
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { FsHtmlEditorConfig } from './interfaces/html-editor-config';
|
|
3
|
-
import { FroalaPlugin } from './enums/default-plugin.enum';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "./components/html-editor/html-editor.component";
|
|
6
|
-
import * as i2 from "@angular/common";
|
|
7
|
-
import * as i3 from "@firestitch/skeleton";
|
|
8
|
-
import * as i4 from "@firestitch/label";
|
|
9
|
-
import * as i5 from "../html-renderer/fs-html-renderer.module";
|
|
10
|
-
export declare class FsHtmlEditorModule {
|
|
11
|
-
static forRoot(config?: FsHtmlEditorConfig): ModuleWithProviders<FsHtmlEditorModule>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlEditorModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsHtmlEditorModule, [typeof i1.FsHtmlEditorComponent], [typeof i2.CommonModule, typeof i3.FsSkeletonModule, typeof i4.FsLabelModule, typeof i5.FsHtmlRendererModule], [typeof i1.FsHtmlEditorComponent]>;
|
|
14
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FsHtmlEditorModule>;
|
|
15
|
-
}
|
|
16
|
-
export declare function FsHtmlEditorConfigFactory(config: FsHtmlEditorConfig): {
|
|
17
|
-
image?: import("./interfaces/html-editor-config").FsHtmlEditorUploadConfig;
|
|
18
|
-
label?: string;
|
|
19
|
-
hint?: string;
|
|
20
|
-
change?: Function;
|
|
21
|
-
initOnClick?: boolean;
|
|
22
|
-
initClick?: (event?: UIEvent) => void;
|
|
23
|
-
placeholder?: string;
|
|
24
|
-
maxLength?: number;
|
|
25
|
-
autofocus?: boolean;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
activationKey?: any;
|
|
28
|
-
tooltip?: string;
|
|
29
|
-
plugins?: import("./classes/plugin").Plugin[];
|
|
30
|
-
froalaPlugins: FroalaPlugin[];
|
|
31
|
-
froalaConfig?: any;
|
|
32
|
-
assetsJSPath?: string;
|
|
33
|
-
assetsCSSPath?: string;
|
|
34
|
-
buttons?: {
|
|
35
|
-
name: string;
|
|
36
|
-
svgKey?: string;
|
|
37
|
-
title?: string;
|
|
38
|
-
focus?: boolean;
|
|
39
|
-
undo?: boolean;
|
|
40
|
-
refreshAfterCallback?: boolean;
|
|
41
|
-
click: (editor: any) => void;
|
|
42
|
-
}[];
|
|
43
|
-
};
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { FsHtmlEditorConfig } from './interfaces/html-editor-config';
|
|
3
|
+
import { FroalaPlugin } from './enums/default-plugin.enum';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "./components/html-editor/html-editor.component";
|
|
6
|
+
import * as i2 from "@angular/common";
|
|
7
|
+
import * as i3 from "@firestitch/skeleton";
|
|
8
|
+
import * as i4 from "@firestitch/label";
|
|
9
|
+
import * as i5 from "../html-renderer/fs-html-renderer.module";
|
|
10
|
+
export declare class FsHtmlEditorModule {
|
|
11
|
+
static forRoot(config?: FsHtmlEditorConfig): ModuleWithProviders<FsHtmlEditorModule>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlEditorModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsHtmlEditorModule, [typeof i1.FsHtmlEditorComponent], [typeof i2.CommonModule, typeof i3.FsSkeletonModule, typeof i4.FsLabelModule, typeof i5.FsHtmlRendererModule], [typeof i1.FsHtmlEditorComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FsHtmlEditorModule>;
|
|
15
|
+
}
|
|
16
|
+
export declare function FsHtmlEditorConfigFactory(config: FsHtmlEditorConfig): {
|
|
17
|
+
image?: import("./interfaces/html-editor-config").FsHtmlEditorUploadConfig;
|
|
18
|
+
label?: string;
|
|
19
|
+
hint?: string;
|
|
20
|
+
change?: Function;
|
|
21
|
+
initOnClick?: boolean;
|
|
22
|
+
initClick?: (event?: UIEvent) => void;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
maxLength?: number;
|
|
25
|
+
autofocus?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
activationKey?: any;
|
|
28
|
+
tooltip?: string;
|
|
29
|
+
plugins?: import("./classes/plugin").Plugin[];
|
|
30
|
+
froalaPlugins: FroalaPlugin[];
|
|
31
|
+
froalaConfig?: any;
|
|
32
|
+
assetsJSPath?: string;
|
|
33
|
+
assetsCSSPath?: string;
|
|
34
|
+
buttons?: {
|
|
35
|
+
name: string;
|
|
36
|
+
svgKey?: string;
|
|
37
|
+
title?: string;
|
|
38
|
+
focus?: boolean;
|
|
39
|
+
undo?: boolean;
|
|
40
|
+
refreshAfterCallback?: boolean;
|
|
41
|
+
click: (editor: any) => void;
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export declare const FS_HTML_EDITOR_DEFAULT_CONFIG: InjectionToken<any[]>;
|
|
3
|
-
export declare const FS_HTML_EDITOR_CONFIG: InjectionToken<any[]>;
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export declare const FS_HTML_EDITOR_DEFAULT_CONFIG: InjectionToken<any[]>;
|
|
3
|
+
export declare const FS_HTML_EDITOR_CONFIG: InjectionToken<any[]>;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Plugin } from '../classes/plugin';
|
|
3
|
-
import { FroalaPlugin } from '../enums/default-plugin.enum';
|
|
4
|
-
export interface FsHtmlEditorConfig {
|
|
5
|
-
image?: FsHtmlEditorUploadConfig;
|
|
6
|
-
label?: string;
|
|
7
|
-
hint?: string;
|
|
8
|
-
change?: Function;
|
|
9
|
-
initOnClick?: boolean;
|
|
10
|
-
initClick?: (event?: UIEvent) => void;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
maxLength?: number;
|
|
13
|
-
autofocus?: boolean;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
activationKey?: any;
|
|
16
|
-
tooltip?: string;
|
|
17
|
-
plugins?: Plugin[];
|
|
18
|
-
froalaPlugins?: FroalaPlugin[];
|
|
19
|
-
froalaConfig?: any;
|
|
20
|
-
assetsJSPath?: string;
|
|
21
|
-
assetsCSSPath?: string;
|
|
22
|
-
buttons?: {
|
|
23
|
-
name: string;
|
|
24
|
-
svgKey?: string;
|
|
25
|
-
title?: string;
|
|
26
|
-
focus?: boolean;
|
|
27
|
-
undo?: boolean;
|
|
28
|
-
refreshAfterCallback?: boolean;
|
|
29
|
-
click: (editor: any) => void;
|
|
30
|
-
}[];
|
|
31
|
-
}
|
|
32
|
-
export interface FsHtmlEditorUploadConfig {
|
|
33
|
-
width?: number | undefined;
|
|
34
|
-
height?: number | undefined;
|
|
35
|
-
quality?: number | undefined;
|
|
36
|
-
format?: string | undefined;
|
|
37
|
-
minWidth?: number;
|
|
38
|
-
minHeight?: number;
|
|
39
|
-
upload?: (file: Blob) => Observable<string>;
|
|
40
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Plugin } from '../classes/plugin';
|
|
3
|
+
import { FroalaPlugin } from '../enums/default-plugin.enum';
|
|
4
|
+
export interface FsHtmlEditorConfig {
|
|
5
|
+
image?: FsHtmlEditorUploadConfig;
|
|
6
|
+
label?: string;
|
|
7
|
+
hint?: string;
|
|
8
|
+
change?: Function;
|
|
9
|
+
initOnClick?: boolean;
|
|
10
|
+
initClick?: (event?: UIEvent) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
maxLength?: number;
|
|
13
|
+
autofocus?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
activationKey?: any;
|
|
16
|
+
tooltip?: string;
|
|
17
|
+
plugins?: Plugin[];
|
|
18
|
+
froalaPlugins?: FroalaPlugin[];
|
|
19
|
+
froalaConfig?: any;
|
|
20
|
+
assetsJSPath?: string;
|
|
21
|
+
assetsCSSPath?: string;
|
|
22
|
+
buttons?: {
|
|
23
|
+
name: string;
|
|
24
|
+
svgKey?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
focus?: boolean;
|
|
27
|
+
undo?: boolean;
|
|
28
|
+
refreshAfterCallback?: boolean;
|
|
29
|
+
click: (editor: any) => void;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
export interface FsHtmlEditorUploadConfig {
|
|
33
|
+
width?: number | undefined;
|
|
34
|
+
height?: number | undefined;
|
|
35
|
+
quality?: number | undefined;
|
|
36
|
+
format?: string | undefined;
|
|
37
|
+
minWidth?: number;
|
|
38
|
+
minHeight?: number;
|
|
39
|
+
upload?: (file: Blob) => Observable<string>;
|
|
40
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface PluginButton {
|
|
2
|
-
name: string;
|
|
3
|
-
title?: string;
|
|
4
|
-
svgPath?: string;
|
|
5
|
-
undo?: boolean;
|
|
6
|
-
tooltip?: string;
|
|
7
|
-
focus?: boolean;
|
|
8
|
-
showOnMobile?: boolean;
|
|
9
|
-
refreshAfterCallback?: boolean;
|
|
10
|
-
click?: (editor: any) => void;
|
|
11
|
-
refresh?: (editor: any, button: any) => void;
|
|
12
|
-
}
|
|
1
|
+
export interface PluginButton {
|
|
2
|
+
name: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
svgPath?: string;
|
|
5
|
+
undo?: boolean;
|
|
6
|
+
tooltip?: string;
|
|
7
|
+
focus?: boolean;
|
|
8
|
+
showOnMobile?: boolean;
|
|
9
|
+
refreshAfterCallback?: boolean;
|
|
10
|
+
click?: (editor: any) => void;
|
|
11
|
+
refresh?: (editor: any, button: any) => void;
|
|
12
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PluginButton } from './plugin-button';
|
|
2
|
-
export interface PluginConfig {
|
|
3
|
-
name?: string;
|
|
4
|
-
buttons?: PluginButton[];
|
|
5
|
-
}
|
|
1
|
+
import { PluginButton } from './plugin-button';
|
|
2
|
+
export interface PluginConfig {
|
|
3
|
+
name?: string;
|
|
4
|
+
buttons?: PluginButton[];
|
|
5
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Plugin } from '../classes/plugin';
|
|
2
|
-
import { PluginConfig } from './../interfaces/plugin-config';
|
|
3
|
-
export declare class ChecklistPlugin extends Plugin {
|
|
4
|
-
config: PluginConfig;
|
|
5
|
-
constructor(config?: PluginConfig);
|
|
6
|
-
initialize(): void;
|
|
7
|
-
}
|
|
1
|
+
import { Plugin } from '../classes/plugin';
|
|
2
|
+
import { PluginConfig } from './../interfaces/plugin-config';
|
|
3
|
+
export declare class ChecklistPlugin extends Plugin {
|
|
4
|
+
config: PluginConfig;
|
|
5
|
+
constructor(config?: PluginConfig);
|
|
6
|
+
initialize(): void;
|
|
7
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Plugin } from '../classes/plugin';
|
|
2
|
-
import { PluginConfig } from './../interfaces/plugin-config';
|
|
3
|
-
export declare class CodePlugin extends Plugin {
|
|
4
|
-
config: PluginConfig;
|
|
5
|
-
constructor(config?: PluginConfig);
|
|
6
|
-
initialize(): void;
|
|
7
|
-
destroy(): void;
|
|
8
|
-
private _getCodeEl;
|
|
9
|
-
}
|
|
1
|
+
import { Plugin } from '../classes/plugin';
|
|
2
|
+
import { PluginConfig } from './../interfaces/plugin-config';
|
|
3
|
+
export declare class CodePlugin extends Plugin {
|
|
4
|
+
config: PluginConfig;
|
|
5
|
+
constructor(config?: PluginConfig);
|
|
6
|
+
initialize(): void;
|
|
7
|
+
destroy(): void;
|
|
8
|
+
private _getCodeEl;
|
|
9
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { PluginConfig } from './../../interfaces/plugin-config';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export interface MentionPluginConfig extends PluginConfig {
|
|
4
|
-
trigger?: string;
|
|
5
|
-
menuItemTemplate?: (data: any) => string;
|
|
6
|
-
selectedTemplate?: (data: any) => string;
|
|
7
|
-
fetch: (keyord?: string) => Observable<any>;
|
|
8
|
-
containerClass?: string;
|
|
9
|
-
menuItemClass?: string;
|
|
10
|
-
tooltip?: string;
|
|
11
|
-
iconPath?: string;
|
|
12
|
-
selected?: (item: any) => void;
|
|
13
|
-
}
|
|
1
|
+
import { PluginConfig } from './../../interfaces/plugin-config';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export interface MentionPluginConfig extends PluginConfig {
|
|
4
|
+
trigger?: string;
|
|
5
|
+
menuItemTemplate?: (data: any) => string;
|
|
6
|
+
selectedTemplate?: (data: any) => string;
|
|
7
|
+
fetch: (keyord?: string) => Observable<any>;
|
|
8
|
+
containerClass?: string;
|
|
9
|
+
menuItemClass?: string;
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
iconPath?: string;
|
|
12
|
+
selected?: (item: any) => void;
|
|
13
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PluginConfig } from '../../interfaces/plugin-config';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export interface ScreenRecordPluginConfig extends PluginConfig {
|
|
4
|
-
name?: string;
|
|
5
|
-
maxWidth?: string;
|
|
6
|
-
upload?: (file: Blob) => Observable<string>;
|
|
7
|
-
}
|
|
1
|
+
import { PluginConfig } from '../../interfaces/plugin-config';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export interface ScreenRecordPluginConfig extends PluginConfig {
|
|
4
|
+
name?: string;
|
|
5
|
+
maxWidth?: string;
|
|
6
|
+
upload?: (file: Blob) => Observable<string>;
|
|
7
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { MentionPluginConfig } from './configs/mention-plugin.config';
|
|
2
|
-
import { Plugin } from '../classes/plugin';
|
|
3
|
-
export declare class MentionPlugin extends Plugin {
|
|
4
|
-
config: MentionPluginConfig;
|
|
5
|
-
private static _currentGuid;
|
|
6
|
-
private static _tributes;
|
|
7
|
-
private _tribute;
|
|
8
|
-
private _guid;
|
|
9
|
-
constructor(config: MentionPluginConfig);
|
|
10
|
-
initialize(): void;
|
|
11
|
-
selected: (event: any) => void;
|
|
12
|
-
destroy(): void;
|
|
13
|
-
private _closeAll;
|
|
14
|
-
private _loadValues;
|
|
15
|
-
}
|
|
1
|
+
import { MentionPluginConfig } from './configs/mention-plugin.config';
|
|
2
|
+
import { Plugin } from '../classes/plugin';
|
|
3
|
+
export declare class MentionPlugin extends Plugin {
|
|
4
|
+
config: MentionPluginConfig;
|
|
5
|
+
private static _currentGuid;
|
|
6
|
+
private static _tributes;
|
|
7
|
+
private _tribute;
|
|
8
|
+
private _guid;
|
|
9
|
+
constructor(config: MentionPluginConfig);
|
|
10
|
+
initialize(): void;
|
|
11
|
+
selected: (event: any) => void;
|
|
12
|
+
destroy(): void;
|
|
13
|
+
private _closeAll;
|
|
14
|
+
private _loadValues;
|
|
15
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PluginConfig } from '../interfaces/plugin-config';
|
|
2
|
-
import { Plugin } from '../classes/plugin';
|
|
3
|
-
export declare class RealtimePlugin extends Plugin {
|
|
4
|
-
config: PluginConfig;
|
|
5
|
-
constructor(config?: PluginConfig);
|
|
6
|
-
initialize(): void;
|
|
7
|
-
}
|
|
1
|
+
import { PluginConfig } from '../interfaces/plugin-config';
|
|
2
|
+
import { Plugin } from '../classes/plugin';
|
|
3
|
+
export declare class RealtimePlugin extends Plugin {
|
|
4
|
+
config: PluginConfig;
|
|
5
|
+
constructor(config?: PluginConfig);
|
|
6
|
+
initialize(): void;
|
|
7
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ScreenRecordPluginConfig } from './configs/screen-record-plugin.config';
|
|
2
|
-
import { Plugin } from '../classes/plugin';
|
|
3
|
-
export declare class ScreenRecordPlugin extends Plugin {
|
|
4
|
-
config: ScreenRecordPluginConfig;
|
|
5
|
-
private _activeEl;
|
|
6
|
-
constructor(config?: ScreenRecordPluginConfig);
|
|
7
|
-
initialize(): Promise<void>;
|
|
8
|
-
private _createPopup;
|
|
9
|
-
private _showPopup;
|
|
10
|
-
private _getEl;
|
|
11
|
-
}
|
|
1
|
+
import { ScreenRecordPluginConfig } from './configs/screen-record-plugin.config';
|
|
2
|
+
import { Plugin } from '../classes/plugin';
|
|
3
|
+
export declare class ScreenRecordPlugin extends Plugin {
|
|
4
|
+
config: ScreenRecordPluginConfig;
|
|
5
|
+
private _activeEl;
|
|
6
|
+
constructor(config?: ScreenRecordPluginConfig);
|
|
7
|
+
initialize(): Promise<void>;
|
|
8
|
+
private _createPopup;
|
|
9
|
+
private _showPopup;
|
|
10
|
+
private _getEl;
|
|
11
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { FsHtmlEditorConfig } from '../interfaces/html-editor-config';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FsFroalaLoaderService {
|
|
5
|
-
private _defaultConfig;
|
|
6
|
-
private _document;
|
|
7
|
-
private _FroalaEditor;
|
|
8
|
-
private _froalaLoaded;
|
|
9
|
-
private _froalaPluginsLoaded;
|
|
10
|
-
private _sourceLoader;
|
|
11
|
-
private _loaded$;
|
|
12
|
-
constructor(_defaultConfig: FsHtmlEditorConfig, _document: Document);
|
|
13
|
-
get loaded$(): Observable<boolean>;
|
|
14
|
-
get FroalaEditor(): any;
|
|
15
|
-
private _load;
|
|
16
|
-
private _loadPlugins;
|
|
17
|
-
private _froalaDone;
|
|
18
|
-
private _froalaPluginsDone;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFroalaLoaderService, [{ optional: true; }, null]>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FsFroalaLoaderService>;
|
|
21
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { FsHtmlEditorConfig } from '../interfaces/html-editor-config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FsFroalaLoaderService {
|
|
5
|
+
private _defaultConfig;
|
|
6
|
+
private _document;
|
|
7
|
+
private _FroalaEditor;
|
|
8
|
+
private _froalaLoaded;
|
|
9
|
+
private _froalaPluginsLoaded;
|
|
10
|
+
private _sourceLoader;
|
|
11
|
+
private _loaded$;
|
|
12
|
+
constructor(_defaultConfig: FsHtmlEditorConfig, _document: Document);
|
|
13
|
+
get loaded$(): Observable<boolean>;
|
|
14
|
+
get FroalaEditor(): any;
|
|
15
|
+
private _load;
|
|
16
|
+
private _loadPlugins;
|
|
17
|
+
private _froalaDone;
|
|
18
|
+
private _froalaPluginsDone;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFroalaLoaderService, [{ optional: true; }, null]>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FsFroalaLoaderService>;
|
|
21
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
2
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FsHtmlRendererComponent {
|
|
5
|
-
private sanitized;
|
|
6
|
-
private _cdRef;
|
|
7
|
-
set setHtml(html: any);
|
|
8
|
-
trustedHtml: SafeHtml;
|
|
9
|
-
constructor(sanitized: DomSanitizer, _cdRef: ChangeDetectorRef);
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlRendererComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsHtmlRendererComponent, "fs-html-renderer", never, { "setHtml": "html"; }, {}, never, never>;
|
|
12
|
-
}
|
|
1
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
2
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FsHtmlRendererComponent {
|
|
5
|
+
private sanitized;
|
|
6
|
+
private _cdRef;
|
|
7
|
+
set setHtml(html: any);
|
|
8
|
+
trustedHtml: SafeHtml;
|
|
9
|
+
constructor(sanitized: DomSanitizer, _cdRef: ChangeDetectorRef);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlRendererComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsHtmlRendererComponent, "fs-html-renderer", never, { "setHtml": "html"; }, {}, never, never>;
|
|
12
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/html-renderer/html-renderer.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class FsHtmlRendererModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlRendererModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsHtmlRendererModule, [typeof i1.FsHtmlRendererComponent], [typeof i2.CommonModule], [typeof i1.FsHtmlRendererComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FsHtmlRendererModule>;
|
|
8
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/html-renderer/html-renderer.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class FsHtmlRendererModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlRendererModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsHtmlRendererModule, [typeof i1.FsHtmlRendererComponent], [typeof i2.CommonModule], [typeof i1.FsHtmlRendererComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FsHtmlRendererModule>;
|
|
8
|
+
}
|