@libs-ui/components-inputs-quill2x 0.2.351-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/README.md +3 -0
- package/blots-custom/image2x.component.d.ts +6 -0
- package/blots-custom/index.d.ts +2 -0
- package/blots-custom/mention2x.component.d.ts +19 -0
- package/esm2022/blots-custom/image2x.component.mjs +13 -0
- package/esm2022/blots-custom/index.mjs +3 -0
- package/esm2022/blots-custom/mention2x.component.mjs +35 -0
- package/esm2022/index.mjs +4 -0
- package/esm2022/interfaces/quill2x.interface.mjs +2 -0
- package/esm2022/libs-ui-components-inputs-quill2x.mjs +5 -0
- package/esm2022/link/link.component.mjs +52 -0
- package/esm2022/quill2x.component.mjs +921 -0
- package/esm2022/upload-image/upload-image.component.mjs +67 -0
- package/esm2022/utils/data.define.mjs +476 -0
- package/esm2022/utils/functions.define.mjs +590 -0
- package/fesm2022/libs-ui-components-inputs-quill2x.mjs +2141 -0
- package/fesm2022/libs-ui-components-inputs-quill2x.mjs.map +1 -0
- package/index.d.ts +3 -0
- package/interfaces/quill2x.interface.d.ts +79 -0
- package/link/link.component.d.ts +27 -0
- package/package.json +27 -0
- package/quill2x.component.d.ts +162 -0
- package/upload-image/upload-image.component.d.ts +15 -0
- package/utils/data.define.d.ts +25 -0
- package/utils/functions.define.d.ts +30 -0
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@libs-ui/components-inputs-quill2x",
|
|
3
|
+
"version": "0.2.351-0",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^18.2.0",
|
|
6
|
+
"@angular/core": "^18.2.0",
|
|
7
|
+
"quill2x": "npm:quill@2.0.3",
|
|
8
|
+
"@ssumo/quill-resize-module": "1.0.3"
|
|
9
|
+
},
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"module": "fesm2022/libs-ui-components-inputs-quill2x.mjs",
|
|
12
|
+
"typings": "index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
"./package.json": {
|
|
15
|
+
"default": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./index.d.ts",
|
|
19
|
+
"esm2022": "./esm2022/libs-ui-components-inputs-quill2x.mjs",
|
|
20
|
+
"esm": "./esm2022/libs-ui-components-inputs-quill2x.mjs",
|
|
21
|
+
"default": "./fesm2022/libs-ui-components-inputs-quill2x.mjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"tslib": "^2.3.0"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { OnDestroy, OnInit, TemplateRef, WritableSignal } from '@angular/core';
|
|
2
|
+
import { IEmitSelectKey } from '@libs-ui/components-dropdown';
|
|
3
|
+
import { IFocusAndBlurEvent } from '@libs-ui/components-inputs-input';
|
|
4
|
+
import { IMentionConfig, IMentionInsert } from '@libs-ui/components-inputs-mention';
|
|
5
|
+
import { IValidLength, IValidRequired } from '@libs-ui/components-inputs-valid';
|
|
6
|
+
import { ILabel } from '@libs-ui/components-label';
|
|
7
|
+
import { IListConfigItem } from '@libs-ui/components-list';
|
|
8
|
+
import { TYPE_POPOVER_EVENT } from '@libs-ui/components-popover';
|
|
9
|
+
import { TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
10
|
+
import { IOutputColorChangeMultipleType } from '@libs-ui/components-color-picker';
|
|
11
|
+
import { IQuill2xBlotRegister, IQuill2xCustomConfig, IQuill2xFunctionControlEvent, IQuill2xLink, IQuill2xSelectionChange, IQuill2xTextChange, IQuill2xToolbarConfig, IQuill2xUploadImageConfig } from './interfaces/quill2x.interface';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class LibsUiComponentsInputsQuill2xComponent implements OnInit, OnDestroy {
|
|
14
|
+
private displayEditor;
|
|
15
|
+
private isPaste;
|
|
16
|
+
private quill;
|
|
17
|
+
private addEditLinkComponentRef;
|
|
18
|
+
private uploadImageComponentRef;
|
|
19
|
+
private handlers;
|
|
20
|
+
private timerSetFontSize;
|
|
21
|
+
private timerCalculatorToolbar;
|
|
22
|
+
private totalRecallCalculatorToolbar;
|
|
23
|
+
private isCalculatorToolbarSuccess;
|
|
24
|
+
private showMention;
|
|
25
|
+
private handlerTextChangeBind;
|
|
26
|
+
private handlerSelectionChangeBind;
|
|
27
|
+
protected borderColor: import("@angular/core").Signal<string>;
|
|
28
|
+
protected containerClass: import("@angular/core").Signal<string>;
|
|
29
|
+
protected containerToolbarClass: import("@angular/core").Signal<string>;
|
|
30
|
+
protected containerEditorClass: import("@angular/core").Signal<string>;
|
|
31
|
+
protected showButtonMoreToolbar: import("@angular/core").Signal<boolean>;
|
|
32
|
+
protected displaySkeletonToolbar: import("@angular/core").Signal<boolean>;
|
|
33
|
+
protected labelFontSelectedComputed: import("@angular/core").Signal<any>;
|
|
34
|
+
protected fontSelected: WritableSignal<IEmitSelectKey | undefined>;
|
|
35
|
+
protected listConfigFont: WritableSignal<IListConfigItem>;
|
|
36
|
+
protected listConfigHeader: WritableSignal<IListConfigItem>;
|
|
37
|
+
protected headerSelected: WritableSignal<IEmitSelectKey | undefined>;
|
|
38
|
+
protected labelHeaderSelectedComputed: import("@angular/core").Signal<any>;
|
|
39
|
+
protected listConfigAlign: WritableSignal<IListConfigItem>;
|
|
40
|
+
protected alignSelected: WritableSignal<IEmitSelectKey | undefined>;
|
|
41
|
+
protected iconAlignSelectedComputed: import("@angular/core").Signal<any>;
|
|
42
|
+
protected colorSelected: WritableSignal<string | undefined>;
|
|
43
|
+
protected backgroundSelected: WritableSignal<string | undefined>;
|
|
44
|
+
protected listCheckboxSelected: WritableSignal<boolean>;
|
|
45
|
+
protected adjustSelected: WritableSignal<string | undefined>;
|
|
46
|
+
protected messageError: WritableSignal<string>;
|
|
47
|
+
protected fontSize: WritableSignal<{
|
|
48
|
+
value: number;
|
|
49
|
+
}>;
|
|
50
|
+
protected link: WritableSignal<IQuill2xLink>;
|
|
51
|
+
protected showMoreAction: WritableSignal<boolean>;
|
|
52
|
+
protected toolbarOptionsConfig: WritableSignal<Array<IQuill2xToolbarConfig>>;
|
|
53
|
+
protected loadingUploadImage: WritableSignal<boolean>;
|
|
54
|
+
readonly uploadImageConfig: import("@angular/core").InputSignalWithTransform<IQuill2xUploadImageConfig, IQuill2xUploadImageConfig | undefined>;
|
|
55
|
+
readonly displayToolbar: import("@angular/core").InputSignalWithTransform<boolean, boolean | undefined>;
|
|
56
|
+
readonly placeholder: import("@angular/core").InputSignalWithTransform<string, string | undefined>;
|
|
57
|
+
readonly blotsRegister: import("@angular/core").InputSignal<IQuill2xBlotRegister[] | undefined>;
|
|
58
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, boolean | undefined>;
|
|
59
|
+
readonly quillCustomConfig: import("@angular/core").InputSignal<IQuill2xCustomConfig | undefined>;
|
|
60
|
+
readonly label: import("@angular/core").InputSignal<ILabel | undefined>;
|
|
61
|
+
readonly item: import("@angular/core").ModelSignal<TYPE_OBJECT>;
|
|
62
|
+
readonly fieldBind: import("@angular/core").InputSignal<string>;
|
|
63
|
+
readonly autoUpdateValueWhenTextChange: import("@angular/core").InputSignalWithTransform<boolean, boolean | undefined>;
|
|
64
|
+
readonly dataConfigMention: import("@angular/core").InputSignal<IMentionConfig | undefined>;
|
|
65
|
+
readonly templateToolBarPersonalize: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
66
|
+
readonly zIndex: import("@angular/core").InputSignalWithTransform<number, number | undefined>;
|
|
67
|
+
readonly ignoreShowPopupEditLink: import("@angular/core").InputSignal<boolean | undefined>;
|
|
68
|
+
readonly ignoreCommunicateMicroEventPopup: import("@angular/core").InputSignal<boolean | undefined>;
|
|
69
|
+
readonly handlersExpand: import("@angular/core").InputSignal<{
|
|
70
|
+
title: string;
|
|
71
|
+
action: () => void;
|
|
72
|
+
}[] | undefined>;
|
|
73
|
+
readonly resizeImagePlugin: import("@angular/core").InputSignal<boolean | undefined>;
|
|
74
|
+
readonly fontSizeDefault: import("@angular/core").InputSignalWithTransform<number, number | undefined>;
|
|
75
|
+
readonly heightEditorContentDefault: import("@angular/core").InputSignal<number | undefined>;
|
|
76
|
+
readonly minHeightEditorContentDefault: import("@angular/core").InputSignal<number | undefined>;
|
|
77
|
+
readonly maxHeightEditorContentDefault: import("@angular/core").InputSignal<number | undefined>;
|
|
78
|
+
readonly removeNearWhiteColorsOnPaste: import("@angular/core").InputSignal<boolean>;
|
|
79
|
+
readonly resize: import("@angular/core").InputSignalWithTransform<"vertical" | "none", "vertical" | "none" | undefined>;
|
|
80
|
+
readonly autoFocus: import("@angular/core").InputSignal<boolean | undefined>;
|
|
81
|
+
readonly focusTimerOnInit: import("@angular/core").InputSignalWithTransform<number, number | undefined>;
|
|
82
|
+
readonly focusBottom: import("@angular/core").InputSignal<boolean | undefined>;
|
|
83
|
+
readonly validRequired: import("@angular/core").InputSignal<IValidRequired | undefined>;
|
|
84
|
+
readonly validMinLength: import("@angular/core").InputSignal<IValidLength | undefined>;
|
|
85
|
+
readonly validMaxLength: import("@angular/core").InputSignal<IValidLength | undefined>;
|
|
86
|
+
readonly showErrorLabel: import("@angular/core").InputSignalWithTransform<boolean, boolean | undefined>;
|
|
87
|
+
readonly showErrorBorder: import("@angular/core").InputSignal<boolean | undefined>;
|
|
88
|
+
readonly ignoreShowBorderErrorToolbar: import("@angular/core").InputSignal<boolean | undefined>;
|
|
89
|
+
readonly outShowPopupEditLink: import("@angular/core").OutputEmitterRef<{
|
|
90
|
+
dataLink: IQuill2xLink;
|
|
91
|
+
callback: (linkEdit: {
|
|
92
|
+
title: string;
|
|
93
|
+
link: string;
|
|
94
|
+
}) => Promise<void>;
|
|
95
|
+
}>;
|
|
96
|
+
readonly outMessageError: import("@angular/core").OutputEmitterRef<string>;
|
|
97
|
+
readonly outBlur: import("@angular/core").OutputEmitterRef<void>;
|
|
98
|
+
readonly outFocus: import("@angular/core").OutputEmitterRef<void>;
|
|
99
|
+
readonly outChange: import("@angular/core").OutputEmitterRef<string>;
|
|
100
|
+
readonly outSelectionChange: import("@angular/core").OutputEmitterRef<IQuill2xSelectionChange>;
|
|
101
|
+
readonly outTextChange: import("@angular/core").OutputEmitterRef<IQuill2xTextChange>;
|
|
102
|
+
readonly outContextMenu: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
103
|
+
readonly outFunctionsControl: import("@angular/core").OutputEmitterRef<IQuill2xFunctionControlEvent>;
|
|
104
|
+
private readonly htmlContainer;
|
|
105
|
+
private readonly quillBodyContainer;
|
|
106
|
+
private readonly toolbarContainer;
|
|
107
|
+
private readonly inputLinkRef;
|
|
108
|
+
private readonly destroyRef;
|
|
109
|
+
private readonly notificationService;
|
|
110
|
+
private readonly translate;
|
|
111
|
+
private readonly cdr;
|
|
112
|
+
private readonly dynamicComponentService;
|
|
113
|
+
constructor();
|
|
114
|
+
ngOnInit(): Promise<void>;
|
|
115
|
+
get FunctionsControl(): IQuill2xFunctionControlEvent;
|
|
116
|
+
protected handlerChangeShowMoreAction(event: Event): void;
|
|
117
|
+
protected handleSelectFont(event: IEmitSelectKey | undefined): void;
|
|
118
|
+
protected handleSelectHeader(event: IEmitSelectKey | undefined): void;
|
|
119
|
+
protected handlerValueChangeFontSize(event?: IFocusAndBlurEvent): void;
|
|
120
|
+
protected handleSelectAlign(event: IEmitSelectKey | undefined): void;
|
|
121
|
+
protected handlerSetFormat(type: string, data: IOutputColorChangeMultipleType): void;
|
|
122
|
+
protected handlerInsertEmoji(emoji: unknown): void;
|
|
123
|
+
protected handlerUnlink(event: Event): void;
|
|
124
|
+
protected handlerEditLink(event: Event): void;
|
|
125
|
+
protected handleToggleMention(show: boolean): void;
|
|
126
|
+
protected handlerInsertMention(data: IMentionInsert): void;
|
|
127
|
+
private handleTable;
|
|
128
|
+
private handleUndo;
|
|
129
|
+
private handleRedo;
|
|
130
|
+
private handlerShowUploadImage;
|
|
131
|
+
private insertText;
|
|
132
|
+
private handlerSelectionChange;
|
|
133
|
+
private handlerCopy;
|
|
134
|
+
private handlerPaste;
|
|
135
|
+
private handlerTextChange;
|
|
136
|
+
private updateStateToolbarByFormatInCursor;
|
|
137
|
+
private validate;
|
|
138
|
+
private updateHandlerFunction;
|
|
139
|
+
private noPreventEmbedDeletion;
|
|
140
|
+
private setFontSizeSelected;
|
|
141
|
+
private setFontSelected;
|
|
142
|
+
private setColorSelected;
|
|
143
|
+
private calculatorToolbar;
|
|
144
|
+
private setStyleForContent;
|
|
145
|
+
private setContent;
|
|
146
|
+
private adjustIndexForImages;
|
|
147
|
+
private uploadImagesAndInsert;
|
|
148
|
+
private insertImage;
|
|
149
|
+
protected handlerPopoverEvent(event: TYPE_POPOVER_EVENT): void;
|
|
150
|
+
private insertLink;
|
|
151
|
+
private handleShowUploadLink;
|
|
152
|
+
private insertMention;
|
|
153
|
+
private updateValueByRootQuillHtml;
|
|
154
|
+
private convertInnerHTMLAndSetValue;
|
|
155
|
+
private removeUnwantedPart;
|
|
156
|
+
private detectLink;
|
|
157
|
+
private getIndexUrlMatch;
|
|
158
|
+
private focus;
|
|
159
|
+
ngOnDestroy(): void;
|
|
160
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsInputsQuill2xComponent, never>;
|
|
161
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsInputsQuill2xComponent, "libs_ui-components-inputs-quill2x", never, { "uploadImageConfig": { "alias": "uploadImageConfig"; "required": false; "isSignal": true; }; "displayToolbar": { "alias": "displayToolbar"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "blotsRegister": { "alias": "blotsRegister"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "quillCustomConfig": { "alias": "quillCustomConfig"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": true; "isSignal": true; }; "fieldBind": { "alias": "fieldBind"; "required": true; "isSignal": true; }; "autoUpdateValueWhenTextChange": { "alias": "autoUpdateValueWhenTextChange"; "required": false; "isSignal": true; }; "dataConfigMention": { "alias": "dataConfigMention"; "required": false; "isSignal": true; }; "templateToolBarPersonalize": { "alias": "templateToolBarPersonalize"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "ignoreShowPopupEditLink": { "alias": "ignoreShowPopupEditLink"; "required": false; "isSignal": true; }; "ignoreCommunicateMicroEventPopup": { "alias": "ignoreCommunicateMicroEventPopup"; "required": false; "isSignal": true; }; "handlersExpand": { "alias": "handlersExpand"; "required": false; "isSignal": true; }; "resizeImagePlugin": { "alias": "resizeImagePlugin"; "required": false; "isSignal": true; }; "fontSizeDefault": { "alias": "fontSizeDefault"; "required": false; "isSignal": true; }; "heightEditorContentDefault": { "alias": "heightEditorContentDefault"; "required": false; "isSignal": true; }; "minHeightEditorContentDefault": { "alias": "minHeightEditorContentDefault"; "required": false; "isSignal": true; }; "maxHeightEditorContentDefault": { "alias": "maxHeightEditorContentDefault"; "required": false; "isSignal": true; }; "removeNearWhiteColorsOnPaste": { "alias": "removeNearWhiteColorsOnPaste"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "focusTimerOnInit": { "alias": "focusTimerOnInit"; "required": false; "isSignal": true; }; "focusBottom": { "alias": "focusBottom"; "required": false; "isSignal": true; }; "validRequired": { "alias": "validRequired"; "required": false; "isSignal": true; }; "validMinLength": { "alias": "validMinLength"; "required": false; "isSignal": true; }; "validMaxLength": { "alias": "validMaxLength"; "required": false; "isSignal": true; }; "showErrorLabel": { "alias": "showErrorLabel"; "required": false; "isSignal": true; }; "showErrorBorder": { "alias": "showErrorBorder"; "required": false; "isSignal": true; }; "ignoreShowBorderErrorToolbar": { "alias": "ignoreShowBorderErrorToolbar"; "required": false; "isSignal": true; }; }, { "item": "itemChange"; "outShowPopupEditLink": "outShowPopupEditLink"; "outMessageError": "outMessageError"; "outBlur": "outBlur"; "outFocus": "outFocus"; "outChange": "outChange"; "outSelectionChange": "outSelectionChange"; "outTextChange": "outTextChange"; "outContextMenu": "outContextMenu"; "outFunctionsControl": "outFunctionsControl"; }, never, never, true, never>;
|
|
162
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IButton } from '@libs-ui/components-buttons-button';
|
|
2
|
+
import { TYPE_MODAL_EVENT } from '@libs-ui/components-modal';
|
|
3
|
+
import { IQuill2xUploadImageConfig } from '../interfaces/quill2x.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LibsUiComponentsInputsQuillUploadImageComponent {
|
|
6
|
+
protected buttonFooter: import("@angular/core").WritableSignal<IButton[]>;
|
|
7
|
+
protected disable: import("@angular/core").WritableSignal<boolean>;
|
|
8
|
+
readonly ignoreCommunicateMicroEvent: import("@angular/core").InputSignal<boolean | undefined>;
|
|
9
|
+
readonly uploadImageConfig: import("@angular/core").InputSignal<IQuill2xUploadImageConfig>;
|
|
10
|
+
readonly outClose: import("@angular/core").OutputEmitterRef<string | void>;
|
|
11
|
+
private handlerSaveImage;
|
|
12
|
+
protected handlerEventModal(event: TYPE_MODAL_EVENT): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsInputsQuillUploadImageComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsInputsQuillUploadImageComponent, "libs_ui-components-inputs-quill-upload_image", never, { "ignoreCommunicateMicroEvent": { "alias": "ignoreCommunicateMicroEvent"; "required": false; "isSignal": true; }; "uploadImageConfig": { "alias": "uploadImageConfig"; "required": true; "isSignal": true; }; }, { "outClose": "outClose"; }, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IListConfigItem } from '@libs-ui/components-list';
|
|
2
|
+
import { IQuill2xLink, IQuill2xToolbarConfig, IQuill2xUploadImageConfig, QUILL2X_TYPE_MODE_BAR_CONFIG_OPTION } from '../interfaces/quill2x.interface';
|
|
3
|
+
export declare const listDataAlign: () => {
|
|
4
|
+
key: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const listFont: () => {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const listHeader: () => {
|
|
12
|
+
key: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}[];
|
|
15
|
+
export declare const listConfigAlign: () => IListConfigItem;
|
|
16
|
+
export declare const listConfigFont: () => IListConfigItem;
|
|
17
|
+
export declare const listConfigHeader: () => IListConfigItem;
|
|
18
|
+
export declare const toolBarOptions: (mode: QUILL2X_TYPE_MODE_BAR_CONFIG_OPTION, hasIconImage: boolean, hasIconPersonalize: boolean) => Array<IQuill2xToolbarConfig>;
|
|
19
|
+
export declare const iconList: () => Array<{
|
|
20
|
+
key: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const uploadImageConfigDefault: () => IQuill2xUploadImageConfig;
|
|
24
|
+
export declare const linkDefault: () => IQuill2xLink;
|
|
25
|
+
export declare const fontSizeWhiteList: () => string[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import Delta from 'quill-delta';
|
|
3
|
+
import Quill2x from 'quill2x';
|
|
4
|
+
export declare const createTableSelector: (quill: Quill2x, anchorEl: HTMLElement | null, translate: TranslateService) => void;
|
|
5
|
+
export declare const createContextMenuOptionTable: (quill: Quill2x, translate: TranslateService) => void;
|
|
6
|
+
export declare function enableTableSelection(container: HTMLElement): void;
|
|
7
|
+
export declare const mergeCells: (startCell: HTMLElement, endCell: HTMLElement) => void;
|
|
8
|
+
export declare function splitCells(cellSplit: HTMLElement): void;
|
|
9
|
+
export declare const getAllTablesWithSpan: (quill: any) => void;
|
|
10
|
+
export declare const registerQuill2x: () => void;
|
|
11
|
+
export declare const isEmptyQuill2x: (quill: Quill2x | null) => boolean;
|
|
12
|
+
export declare const getHTMLFromDeltaOfQuill2x: (delta: Delta, options?: {
|
|
13
|
+
getRootHtml?: boolean;
|
|
14
|
+
replaceNewLineTo?: string;
|
|
15
|
+
replaceTagBRTo?: string;
|
|
16
|
+
replaceBrToDiv?: boolean;
|
|
17
|
+
functionReplaceDelta?: (op: Delta) => void;
|
|
18
|
+
replaceTags?: {
|
|
19
|
+
tag: string;
|
|
20
|
+
replaceTo: string;
|
|
21
|
+
}[];
|
|
22
|
+
}) => string;
|
|
23
|
+
export declare const getDeltaOfQuill2xFromHTML: (html: string) => Promise<Delta>;
|
|
24
|
+
export declare const convertHtmlToDivBlocks: (html: string) => string;
|
|
25
|
+
export declare const processPasteData: (e: ClipboardEvent, config: {
|
|
26
|
+
element: HTMLElement;
|
|
27
|
+
handlerPasteFile?: (files: FileList) => void;
|
|
28
|
+
callBack?: (positonReturn: "file" | "range" | "content" | "no-content") => void;
|
|
29
|
+
}) => Promise<void>;
|
|
30
|
+
export declare const insertContentWithRange: (content: string, savedRange: Range, element: HTMLElement) => void;
|