@stackch/angular-richtext-editor 1.2.0 → 1.2.1
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/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, ElementRef
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter, ElementRef } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
declare class StackchRichtextEditorConfig {
|
|
@@ -61,8 +61,15 @@ declare class StackchRichtextEditorI18n {
|
|
|
61
61
|
declare const STACKCH_RTE_I18N_DE: Partial<StackchRichtextEditorI18n>;
|
|
62
62
|
declare const STACKCH_RTE_I18N_FR: Partial<StackchRichtextEditorI18n>;
|
|
63
63
|
declare const STACKCH_RTE_I18N_IT: Partial<StackchRichtextEditorI18n>;
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Abstract base class shared by StackchRichtextEditor (core) and
|
|
66
|
+
* StackchRichtextEditorMaterial (Material variant).
|
|
67
|
+
* Contains all editing logic; concrete subclasses add only the @Component
|
|
68
|
+
* decorator with their own template / styles / toolbar.
|
|
69
|
+
*/
|
|
70
|
+
declare abstract class StackchRichtextEditorBase implements ControlValueAccessor {
|
|
71
|
+
protected cdr: ChangeDetectorRef;
|
|
72
|
+
protected logPrefix: string;
|
|
66
73
|
placeholder: string;
|
|
67
74
|
showToolbar: boolean;
|
|
68
75
|
fonts: string[];
|
|
@@ -80,7 +87,7 @@ declare class StackchRichtextEditor implements ControlValueAccessor {
|
|
|
80
87
|
config?: Partial<StackchRichtextEditorConfig> | null;
|
|
81
88
|
get cfg(): StackchRichtextEditorConfig;
|
|
82
89
|
get i18n(): StackchRichtextEditorI18n;
|
|
83
|
-
|
|
90
|
+
protected onChange: (value: string) => void;
|
|
84
91
|
onTouched: () => void;
|
|
85
92
|
private savedRange;
|
|
86
93
|
private history;
|
|
@@ -189,8 +196,15 @@ declare class StackchRichtextEditor implements ControlValueAccessor {
|
|
|
189
196
|
private applySpacingToSelection;
|
|
190
197
|
private normalizeSpacingSpans;
|
|
191
198
|
private setHeading;
|
|
199
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StackchRichtextEditorBase, never>;
|
|
200
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StackchRichtextEditorBase, never, never, { "placeholder": { "alias": "placeholder"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "fonts": { "alias": "fonts"; "required": false; }; "fontSizes": { "alias": "fontSizes"; "required": false; }; "height": { "alias": "height"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "valueChange": "valueChange"; "metricsChange": "metricsChange"; }, never, never, true, never>;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
declare class StackchRichtextEditor extends StackchRichtextEditorBase {
|
|
204
|
+
protected logPrefix: string;
|
|
205
|
+
constructor(cdr: ChangeDetectorRef);
|
|
192
206
|
static ɵfac: i0.ɵɵFactoryDeclaration<StackchRichtextEditor, never>;
|
|
193
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StackchRichtextEditor, "stackch-richtext-editor", never, {
|
|
207
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StackchRichtextEditor, "stackch-richtext-editor", never, {}, {}, never, never, true, never>;
|
|
194
208
|
}
|
|
195
209
|
|
|
196
210
|
declare class StackchRichtextEditorToolbar {
|
|
@@ -244,5 +258,5 @@ declare class StackchRichtextEditorToolbar {
|
|
|
244
258
|
static ɵcmp: i0.ɵɵComponentDeclaration<StackchRichtextEditorToolbar, "stackch-richtext-editor-toolbar", never, { "cfg": { "alias": "cfg"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fonts": { "alias": "fonts"; "required": false; }; "fontSizes": { "alias": "fontSizes"; "required": false; }; "isBoldActive": { "alias": "isBoldActive"; "required": false; }; "isItalicActive": { "alias": "isItalicActive"; "required": false; }; "isUnderlineActive": { "alias": "isUnderlineActive"; "required": false; }; "canUndo": { "alias": "canUndo"; "required": false; }; "canRedo": { "alias": "canRedo"; "required": false; }; "uiState": { "alias": "uiState"; "required": false; }; }, { "undo": "undo"; "redo": "redo"; "toggleFontPanel": "toggleFontPanel"; "toggleHeadingMenu": "toggleHeadingMenu"; "toggleSpacingMenu": "toggleSpacingMenu"; "toggleAlignMenu": "toggleAlignMenu"; "toggleColorMenu": "toggleColorMenu"; "toggleListMenu": "toggleListMenu"; "pickFont": "pickFont"; "pickFontSize": "pickFontSize"; "pickAlign": "pickAlign"; "pickList": "pickList"; "pickHeading": "pickHeading"; "pickSpacing": "pickSpacing"; "applyColor": "applyColor"; "applyHighlight": "applyHighlight"; "toggleBold": "toggleBold"; "toggleItalic": "toggleItalic"; "toggleUnderline": "toggleUnderline"; "insertLink": "insertLink"; "removeFormat": "removeFormat"; "saveSelectionRequest": "saveSelectionRequest"; }, never, never, true, never>;
|
|
245
259
|
}
|
|
246
260
|
|
|
247
|
-
export { STACKCH_RTE_I18N_DE, STACKCH_RTE_I18N_FR, STACKCH_RTE_I18N_IT, StackchRichtextEditor, StackchRichtextEditorConfig, StackchRichtextEditorI18n, StackchRichtextEditorToolbar };
|
|
261
|
+
export { STACKCH_RTE_I18N_DE, STACKCH_RTE_I18N_FR, STACKCH_RTE_I18N_IT, StackchRichtextEditor, StackchRichtextEditorBase, StackchRichtextEditorConfig, StackchRichtextEditorI18n, StackchRichtextEditorToolbar };
|
|
248
262
|
export type { StackchRichtextMetrics };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackch/angular-richtext-editor",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Lightweight Angular rich text editor (standalone) with a reusable toolbar: fonts, sizes, colors, lists, alignment, links.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.3.4",
|