asksuite-citrus 2.0.3 → 2.0.4-beta
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/esm2022/lib/asksuite-citrus.module.mjs +4 -1
- package/esm2022/lib/classes/richtext-wrapper.mjs +27 -3
- package/esm2022/lib/components/richtext-toolbox/richtext-toolbox.component.mjs +3 -3
- package/esm2022/lib/components/richtext-url-prompt/richtext-url-prompt.component.mjs +3 -3
- package/esm2022/lib/directives/richtext-toolbox/richtext-toolbox.directive.mjs +9 -2
- package/esm2022/lib/helpers/html-panel-quill-blot.helper.mjs +21 -0
- package/fesm2022/asksuite-citrus.mjs +59 -7
- package/fesm2022/asksuite-citrus.mjs.map +1 -1
- package/lib/classes/richtext-wrapper.d.ts +4 -0
- package/lib/directives/richtext-toolbox/richtext-toolbox.directive.d.ts +2 -1
- package/lib/helpers/html-panel-quill-blot.helper.d.ts +9 -0
- package/package.json +1 -1
@@ -11,6 +11,7 @@ export declare class RichtextWrapper implements RichTextFunctions {
|
|
11
11
|
private enter$;
|
12
12
|
private maxLength;
|
13
13
|
private breakOnEnter;
|
14
|
+
private allowImages;
|
14
15
|
private quillFormats;
|
15
16
|
private textChangeHandler;
|
16
17
|
private selectionChangeHandler;
|
@@ -45,9 +46,12 @@ export declare class RichtextWrapper implements RichTextFunctions {
|
|
45
46
|
enable(): void;
|
46
47
|
focus(): void;
|
47
48
|
setBreakOnEnter(breakOnEnter: boolean): void;
|
49
|
+
setAllowImages(allowImages: boolean): void;
|
48
50
|
destroy(): void;
|
49
51
|
private isToolDisabled;
|
50
52
|
private urlMatcher;
|
53
|
+
private imageMatcher;
|
54
|
+
private htmlPanelMatcher;
|
51
55
|
private listenEditorChanges;
|
52
56
|
private update;
|
53
57
|
}
|
@@ -17,6 +17,7 @@ export declare class RichtextToolboxDirective implements OnChanges, ControlValue
|
|
17
17
|
rtToolbarClass: string;
|
18
18
|
rtEditorClass: string;
|
19
19
|
rtBreakOnEnter: boolean;
|
20
|
+
rtAllowImages: boolean;
|
20
21
|
inputChange: EventEmitter<string>;
|
21
22
|
inputEnter: EventEmitter<any>;
|
22
23
|
inputEscape: EventEmitter<any>;
|
@@ -38,5 +39,5 @@ export declare class RichtextToolboxDirective implements OnChanges, ControlValue
|
|
38
39
|
private generateToolboxLayout;
|
39
40
|
private getToolbox;
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<RichtextToolboxDirective, never>;
|
41
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RichtextToolboxDirective, "[askRichtextToolbox]", never, { "rtPlaceholder": { "alias": "rtPlaceholder"; "required": false; }; "rtTools": { "alias": "rtTools"; "required": false; }; "rtDisabledTools": { "alias": "rtDisabledTools"; "required": false; }; "rtType": { "alias": "rtType"; "required": false; }; "rtToolbarOnly": { "alias": "rtToolbarOnly"; "required": false; }; "rtMaxlength": { "alias": "rtMaxlength"; "required": false; }; "rtToolbarClass": { "alias": "rtToolbarClass"; "required": false; }; "rtEditorClass": { "alias": "rtEditorClass"; "required": false; }; "rtBreakOnEnter": { "alias": "rtBreakOnEnter"; "required": false; }; }, { "inputChange": "inputChange"; "inputEnter": "inputEnter"; "inputEscape": "inputEscape"; "inputFocus": "inputFocus"; "toolChange": "toolChange"; }, never, never, false, never>;
|
42
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RichtextToolboxDirective, "[askRichtextToolbox]", never, { "rtPlaceholder": { "alias": "rtPlaceholder"; "required": false; }; "rtTools": { "alias": "rtTools"; "required": false; }; "rtDisabledTools": { "alias": "rtDisabledTools"; "required": false; }; "rtType": { "alias": "rtType"; "required": false; }; "rtToolbarOnly": { "alias": "rtToolbarOnly"; "required": false; }; "rtMaxlength": { "alias": "rtMaxlength"; "required": false; }; "rtToolbarClass": { "alias": "rtToolbarClass"; "required": false; }; "rtEditorClass": { "alias": "rtEditorClass"; "required": false; }; "rtBreakOnEnter": { "alias": "rtBreakOnEnter"; "required": false; }; "rtAllowImages": { "alias": "rtAllowImages"; "required": false; }; }, { "inputChange": "inputChange"; "inputEnter": "inputEnter"; "inputEscape": "inputEscape"; "inputFocus": "inputFocus"; "toolChange": "toolChange"; }, never, never, false, never>;
|
42
43
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
declare let BlockEmbed: any;
|
2
|
+
export declare class HTMLPanelQuillBlot extends BlockEmbed {
|
3
|
+
static blotName: string;
|
4
|
+
static tagName: string;
|
5
|
+
static className: string;
|
6
|
+
static create(html: string): HTMLElement;
|
7
|
+
static value(domNode: HTMLElement): string;
|
8
|
+
}
|
9
|
+
export {};
|