@firestitch/html-editor 9.4.5 → 9.5.0
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/classes/plugin.d.ts +7 -7
- package/app/components/html-editor/html-editor.component.d.ts +51 -51
- package/app/components/html-renderer/html-renderer.component.d.ts +9 -9
- package/app/consts/paragraph-buttons.const.d.ts +1 -1
- package/app/consts/rich-buttons.const.d.ts +1 -1
- package/app/consts/text-buttons.const.d.ts +1 -1
- package/app/enums/default-plugin.enum.d.ts +13 -14
- package/app/fs-html-editor.module.d.ts +25 -25
- package/app/injects/config.inject.d.ts +3 -3
- package/app/interfaces/html-editor-config.d.ts +31 -25
- package/app/interfaces/plugin-button.d.ts +12 -12
- package/app/interfaces/plugin-config.d.ts +5 -5
- package/app/plugins/checklist.plugin.d.ts +7 -7
- package/app/plugins/code.plugin.d.ts +9 -9
- package/app/plugins/configs/mention-plugin.config.d.ts +12 -12
- package/app/plugins/configs/screen-record-plugin.config.d.ts +7 -7
- package/app/plugins/mention.plugin.d.ts +12 -12
- package/app/plugins/screen-record.plugin.d.ts +11 -11
- package/app/services/froala-loader.service.d.ts +17 -17
- package/app/utils/loader.d.ts +7 -7
- package/bundles/firestitch-html-editor.umd.js +1000 -994
- package/bundles/firestitch-html-editor.umd.js.map +1 -1
- package/bundles/firestitch-html-editor.umd.min.js +2 -2
- package/bundles/firestitch-html-editor.umd.min.js.map +1 -1
- package/esm2015/app/classes/plugin.js +4 -4
- package/esm2015/app/components/html-editor/html-editor.component.js +431 -423
- package/esm2015/app/components/html-renderer/html-renderer.component.js +33 -33
- package/esm2015/app/consts/paragraph-buttons.const.js +8 -8
- package/esm2015/app/consts/rich-buttons.const.js +6 -6
- package/esm2015/app/consts/text-buttons.const.js +18 -18
- package/esm2015/app/enums/default-plugin.enum.js +1 -1
- package/esm2015/app/fs-html-editor.module.js +56 -57
- package/esm2015/app/injects/config.inject.js +3 -3
- package/esm2015/app/interfaces/html-editor-config.js +1 -1
- package/esm2015/app/plugins/checklist.plugin.js +34 -34
- package/esm2015/app/plugins/code.plugin.js +62 -62
- package/esm2015/app/plugins/mention.plugin.js +72 -72
- package/esm2015/app/plugins/screen-record.plugin.js +91 -91
- package/esm2015/app/services/froala-loader.service.js +80 -80
- package/esm2015/app/utils/loader.js +82 -83
- package/esm2015/firestitch-html-editor.js +8 -8
- package/esm2015/public_api.js +11 -11
- package/esm5/app/classes/plugin.js +8 -8
- package/esm5/app/components/html-editor/html-editor.component.js +455 -446
- package/esm5/app/components/html-renderer/html-renderer.component.js +38 -38
- package/esm5/app/consts/paragraph-buttons.const.js +8 -8
- package/esm5/app/consts/rich-buttons.const.js +6 -6
- package/esm5/app/consts/text-buttons.const.js +18 -18
- package/esm5/app/enums/default-plugin.enum.js +1 -1
- package/esm5/app/fs-html-editor.module.js +61 -62
- package/esm5/app/injects/config.inject.js +3 -3
- package/esm5/app/interfaces/html-editor-config.js +1 -1
- package/esm5/app/plugins/checklist.plugin.js +40 -40
- package/esm5/app/plugins/code.plugin.js +69 -69
- package/esm5/app/plugins/mention.plugin.js +78 -78
- package/esm5/app/plugins/screen-record.plugin.js +105 -105
- package/esm5/app/services/froala-loader.service.js +95 -95
- package/esm5/app/utils/loader.js +82 -83
- package/esm5/firestitch-html-editor.js +8 -8
- package/esm5/public_api.js +11 -11
- package/fesm2015/firestitch-html-editor.js +922 -916
- package/fesm2015/firestitch-html-editor.js.map +1 -1
- package/fesm5/firestitch-html-editor.js +1000 -993
- package/fesm5/firestitch-html-editor.js.map +1 -1
- package/firestitch-html-editor.d.ts +9 -9
- package/firestitch-html-editor.metadata.json +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +16 -16
package/app/classes/plugin.d.ts
CHANGED
|
@@ -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,51 +1,51 @@
|
|
|
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
|
-
export declare class FsHtmlEditorComponent implements OnInit, AfterViewInit, ControlValueAccessor, Validator, OnDestroy {
|
|
7
|
-
private _defaultConfig;
|
|
8
|
-
private _cdRef;
|
|
9
|
-
private _fr;
|
|
10
|
-
classFocused: boolean;
|
|
11
|
-
classDisabled: boolean;
|
|
12
|
-
elRef: ElementRef;
|
|
13
|
-
config: FsHtmlEditorConfig;
|
|
14
|
-
initialized: boolean;
|
|
15
|
-
private _editor;
|
|
16
|
-
private _html;
|
|
17
|
-
private _initialize$;
|
|
18
|
-
private _destroy$;
|
|
19
|
-
constructor(_defaultConfig: any, _cdRef: ChangeDetectorRef, _fr: FsFroalaLoaderService);
|
|
20
|
-
onChange: (data: any) => void;
|
|
21
|
-
onTouched: () => void;
|
|
22
|
-
readonly el: any;
|
|
23
|
-
readonly html: string;
|
|
24
|
-
readonly editor: any;
|
|
25
|
-
readonly froalaReady$: Observable<boolean>;
|
|
26
|
-
ngOnInit(): void;
|
|
27
|
-
ngAfterViewInit(): void;
|
|
28
|
-
hasContent(): boolean;
|
|
29
|
-
initialize(options?: any): void;
|
|
30
|
-
private _processImageUpload;
|
|
31
|
-
private _getTextNode;
|
|
32
|
-
uninitializedClick(event: UIEvent): void;
|
|
33
|
-
updateSize(): void;
|
|
34
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
35
|
-
focus(options?: {
|
|
36
|
-
cursorPosition?: 'start' | 'end';
|
|
37
|
-
}): void;
|
|
38
|
-
clear(): void;
|
|
39
|
-
disable(): void;
|
|
40
|
-
setHtml(html: any): void;
|
|
41
|
-
writeValue(html: string): void;
|
|
42
|
-
registerOnChange(fn: (data: any) => void): void;
|
|
43
|
-
registerOnTouched(fn: () => void): void;
|
|
44
|
-
ngOnDestroy(): void;
|
|
45
|
-
destroy(): void;
|
|
46
|
-
private _createConfig;
|
|
47
|
-
private _change;
|
|
48
|
-
private _initPlugins;
|
|
49
|
-
private _createOptions;
|
|
50
|
-
private _listenLazyInit;
|
|
51
|
-
}
|
|
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
|
+
export declare class FsHtmlEditorComponent implements OnInit, AfterViewInit, ControlValueAccessor, Validator, OnDestroy {
|
|
7
|
+
private _defaultConfig;
|
|
8
|
+
private _cdRef;
|
|
9
|
+
private _fr;
|
|
10
|
+
classFocused: boolean;
|
|
11
|
+
classDisabled: boolean;
|
|
12
|
+
elRef: ElementRef;
|
|
13
|
+
config: FsHtmlEditorConfig;
|
|
14
|
+
initialized: boolean;
|
|
15
|
+
private _editor;
|
|
16
|
+
private _html;
|
|
17
|
+
private _initialize$;
|
|
18
|
+
private _destroy$;
|
|
19
|
+
constructor(_defaultConfig: any, _cdRef: ChangeDetectorRef, _fr: FsFroalaLoaderService);
|
|
20
|
+
onChange: (data: any) => void;
|
|
21
|
+
onTouched: () => void;
|
|
22
|
+
readonly el: any;
|
|
23
|
+
readonly html: string;
|
|
24
|
+
readonly editor: any;
|
|
25
|
+
readonly froalaReady$: Observable<boolean>;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngAfterViewInit(): void;
|
|
28
|
+
hasContent(): boolean;
|
|
29
|
+
initialize(options?: any): void;
|
|
30
|
+
private _processImageUpload;
|
|
31
|
+
private _getTextNode;
|
|
32
|
+
uninitializedClick(event: UIEvent): void;
|
|
33
|
+
updateSize(): void;
|
|
34
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
35
|
+
focus(options?: {
|
|
36
|
+
cursorPosition?: 'start' | 'end';
|
|
37
|
+
}): void;
|
|
38
|
+
clear(): void;
|
|
39
|
+
disable(): void;
|
|
40
|
+
setHtml(html: any): void;
|
|
41
|
+
writeValue(html: string): void;
|
|
42
|
+
registerOnChange(fn: (data: any) => void): void;
|
|
43
|
+
registerOnTouched(fn: () => void): void;
|
|
44
|
+
ngOnDestroy(): void;
|
|
45
|
+
destroy(): void;
|
|
46
|
+
private _createConfig;
|
|
47
|
+
private _change;
|
|
48
|
+
private _initPlugins;
|
|
49
|
+
private _createOptions;
|
|
50
|
+
private _listenLazyInit;
|
|
51
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
2
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
export declare class FsHtmlRendererComponent {
|
|
4
|
-
private sanitized;
|
|
5
|
-
private _cdRef;
|
|
6
|
-
setHtml: any;
|
|
7
|
-
trustedHtml: SafeHtml;
|
|
8
|
-
constructor(sanitized: DomSanitizer, _cdRef: ChangeDetectorRef);
|
|
9
|
-
}
|
|
1
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
2
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
export declare class FsHtmlRendererComponent {
|
|
4
|
+
private sanitized;
|
|
5
|
+
private _cdRef;
|
|
6
|
+
setHtml: any;
|
|
7
|
+
trustedHtml: SafeHtml;
|
|
8
|
+
constructor(sanitized: DomSanitizer, _cdRef: ChangeDetectorRef);
|
|
9
|
+
}
|
|
@@ -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,14 +1,13 @@
|
|
|
1
|
-
export declare const enum DefaultPlugin {
|
|
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
|
-
|
|
14
|
-
}
|
|
1
|
+
export declare const enum DefaultPlugin {
|
|
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
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { FsHtmlEditorConfig } from './interfaces/html-editor-config';
|
|
3
|
-
import { DefaultPlugin } from './enums/default-plugin.enum';
|
|
4
|
-
export declare class FsHtmlEditorModule {
|
|
5
|
-
static forRoot(config?: FsHtmlEditorConfig): ModuleWithProviders<FsHtmlEditorModule>;
|
|
6
|
-
}
|
|
7
|
-
export declare function FsHtmlEditorConfigFactory(config: FsHtmlEditorConfig): {
|
|
8
|
-
image?: import("./interfaces/html-editor-config").FsHtmlEditorUploadConfig;
|
|
9
|
-
label?: string;
|
|
10
|
-
hint?: string;
|
|
11
|
-
change?: Function;
|
|
12
|
-
initOnClick?: boolean;
|
|
13
|
-
initClick?: (event?: UIEvent) => void;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
maxLength?: number;
|
|
16
|
-
autofocus?: boolean;
|
|
17
|
-
froalaConfig?: any;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
activationKey?: any;
|
|
20
|
-
tooltip?: string;
|
|
21
|
-
plugins?: import("./classes/plugin").Plugin[];
|
|
22
|
-
defaultPlugins: DefaultPlugin[];
|
|
23
|
-
assetsJSPath?: string;
|
|
24
|
-
assetsCSSPath?: string;
|
|
25
|
-
};
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { FsHtmlEditorConfig } from './interfaces/html-editor-config';
|
|
3
|
+
import { DefaultPlugin } from './enums/default-plugin.enum';
|
|
4
|
+
export declare class FsHtmlEditorModule {
|
|
5
|
+
static forRoot(config?: FsHtmlEditorConfig): ModuleWithProviders<FsHtmlEditorModule>;
|
|
6
|
+
}
|
|
7
|
+
export declare function FsHtmlEditorConfigFactory(config: FsHtmlEditorConfig): {
|
|
8
|
+
image?: import("./interfaces/html-editor-config").FsHtmlEditorUploadConfig;
|
|
9
|
+
label?: string;
|
|
10
|
+
hint?: string;
|
|
11
|
+
change?: Function;
|
|
12
|
+
initOnClick?: boolean;
|
|
13
|
+
initClick?: (event?: UIEvent) => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
maxLength?: number;
|
|
16
|
+
autofocus?: boolean;
|
|
17
|
+
froalaConfig?: any;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
activationKey?: any;
|
|
20
|
+
tooltip?: string;
|
|
21
|
+
plugins?: import("./classes/plugin").Plugin[];
|
|
22
|
+
defaultPlugins: DefaultPlugin[];
|
|
23
|
+
assetsJSPath?: string;
|
|
24
|
+
assetsCSSPath?: string;
|
|
25
|
+
};
|
|
@@ -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,25 +1,31 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Plugin } from '../classes/plugin';
|
|
3
|
-
import { DefaultPlugin } 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
|
-
froalaConfig?: any;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
activationKey?: any;
|
|
17
|
-
tooltip?: string;
|
|
18
|
-
plugins?: Plugin[];
|
|
19
|
-
defaultPlugins?: DefaultPlugin[];
|
|
20
|
-
assetsJSPath?: string;
|
|
21
|
-
assetsCSSPath?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface FsHtmlEditorUploadConfig {
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Plugin } from '../classes/plugin';
|
|
3
|
+
import { DefaultPlugin } 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
|
+
froalaConfig?: any;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
activationKey?: any;
|
|
17
|
+
tooltip?: string;
|
|
18
|
+
plugins?: Plugin[];
|
|
19
|
+
defaultPlugins?: DefaultPlugin[];
|
|
20
|
+
assetsJSPath?: string;
|
|
21
|
+
assetsCSSPath?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface FsHtmlEditorUploadConfig {
|
|
24
|
+
width?: number | undefined;
|
|
25
|
+
height?: number | undefined;
|
|
26
|
+
quality?: number | undefined;
|
|
27
|
+
format?: string | undefined;
|
|
28
|
+
minWidth?: number;
|
|
29
|
+
minHeight?: number;
|
|
30
|
+
upload?: (file: Blob) => Observable<string>;
|
|
31
|
+
}
|
|
@@ -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,12 +1,12 @@
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
@@ -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,12 +1,12 @@
|
|
|
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 _tributes;
|
|
6
|
-
private _tribute;
|
|
7
|
-
constructor(config: MentionPluginConfig);
|
|
8
|
-
initialize(): void;
|
|
9
|
-
destroy(): void;
|
|
10
|
-
private _closeAll;
|
|
11
|
-
private _loadValues;
|
|
12
|
-
}
|
|
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 _tributes;
|
|
6
|
+
private _tribute;
|
|
7
|
+
constructor(config: MentionPluginConfig);
|
|
8
|
+
initialize(): void;
|
|
9
|
+
destroy(): void;
|
|
10
|
+
private _closeAll;
|
|
11
|
+
private _loadValues;
|
|
12
|
+
}
|
|
@@ -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,17 +1,17 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { FsHtmlEditorConfig } from '../interfaces/html-editor-config';
|
|
3
|
-
export declare class FsFroalaLoaderService {
|
|
4
|
-
private _defaultConfig;
|
|
5
|
-
private _FroalaEditor;
|
|
6
|
-
private _froalaLoaded;
|
|
7
|
-
private _defaultPluginsLoaded;
|
|
8
|
-
private _ready$;
|
|
9
|
-
constructor(_defaultConfig: FsHtmlEditorConfig);
|
|
10
|
-
readonly ready$: Observable<boolean>;
|
|
11
|
-
readonly ready: boolean;
|
|
12
|
-
readonly FroalaEditor: any;
|
|
13
|
-
private _load;
|
|
14
|
-
private _loadPlugins;
|
|
15
|
-
private _froalaDone;
|
|
16
|
-
private _defaultPluginsDone;
|
|
17
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { FsHtmlEditorConfig } from '../interfaces/html-editor-config';
|
|
3
|
+
export declare class FsFroalaLoaderService {
|
|
4
|
+
private _defaultConfig;
|
|
5
|
+
private _FroalaEditor;
|
|
6
|
+
private _froalaLoaded;
|
|
7
|
+
private _defaultPluginsLoaded;
|
|
8
|
+
private _ready$;
|
|
9
|
+
constructor(_defaultConfig: FsHtmlEditorConfig);
|
|
10
|
+
readonly ready$: Observable<boolean>;
|
|
11
|
+
readonly ready: boolean;
|
|
12
|
+
readonly FroalaEditor: any;
|
|
13
|
+
private _load;
|
|
14
|
+
private _loadPlugins;
|
|
15
|
+
private _froalaDone;
|
|
16
|
+
private _defaultPluginsDone;
|
|
17
|
+
}
|
package/app/utils/loader.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export declare const ResourceLoader: {
|
|
3
|
-
setResourceBase: (path: string) => void;
|
|
4
|
-
setStylesBase: (path: string) => void;
|
|
5
|
-
loadResource: (resourceName: string) => Observable<unknown>;
|
|
6
|
-
loadStyles: (resourceName: string) => Observable<unknown>;
|
|
7
|
-
};
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare const ResourceLoader: {
|
|
3
|
+
setResourceBase: (path: string) => void;
|
|
4
|
+
setStylesBase: (path: string) => void;
|
|
5
|
+
loadResource: (resourceName: string) => Observable<unknown>;
|
|
6
|
+
loadStyles: (resourceName: string) => Observable<unknown>;
|
|
7
|
+
};
|