@ckeditor/ckeditor5-merge-fields 48.2.0 → 48.3.0-alpha.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/dist/augmentation.d.ts +27 -27
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -1
- package/dist/insertmergefieldblockcommand.d.ts +24 -24
- package/dist/insertmergefieldcommand.d.ts +27 -27
- package/dist/insertmergefieldimagecommand.d.ts +33 -33
- package/dist/mergefields.d.ts +31 -31
- package/dist/mergefieldsconfig.d.ts +243 -243
- package/dist/mergefieldsediting.d.ts +144 -144
- package/dist/mergefieldsui.d.ts +42 -42
- package/dist/previewmergefieldscommand.d.ts +39 -39
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/mergefieldslistview.d.ts +17 -17
- package/dist/ui/mergefieldspanelview.d.ts +11 -11
- package/dist/utils/common-translations.d.ts +6 -6
- package/package.json +9 -9
|
@@ -1,149 +1,149 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Plugin, type Editor } from
|
|
6
|
-
import { type ModelElement } from
|
|
7
|
-
import { ImageEditing, ImageUtils } from
|
|
8
|
-
import type { MergeFieldDefinition, MergeFieldType } from
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
6
|
+
import { type ModelElement } from "@ckeditor/ckeditor5-engine";
|
|
7
|
+
import { ImageEditing, ImageUtils } from "@ckeditor/ckeditor5-image";
|
|
8
|
+
import type { MergeFieldDefinition, MergeFieldType } from "./mergefieldsconfig.js";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* The merge fields editing feature.
|
|
11
|
+
*/
|
|
12
12
|
export declare class MergeFieldsEditing extends Plugin {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
13
|
+
/**
|
|
14
|
+
* The current preview mode for merge fields. Determines the merge field values displayed in the editor.
|
|
15
|
+
*
|
|
16
|
+
* @observable
|
|
17
|
+
*/
|
|
18
|
+
previewMode: string;
|
|
19
|
+
/**
|
|
20
|
+
* All configured preview modes, available to be set as a value for {@link #previewMode}.
|
|
21
|
+
*/
|
|
22
|
+
readonly availablePreviewModes: Array<string>;
|
|
23
|
+
/**
|
|
24
|
+
* A flat list of all merge field definitions.
|
|
25
|
+
*/
|
|
26
|
+
flattenedMergeFieldDefinitions: Array<MergeFieldDefinition>;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static get requires(): PluginDependenciesOf<[ImageUtils, ImageEditing]>;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
static get pluginName(): "MergeFieldsEditing";
|
|
35
|
+
/**
|
|
36
|
+
* @inheritDoc
|
|
37
|
+
*/
|
|
38
|
+
static override get isOfficialPlugin(): true;
|
|
39
|
+
/**
|
|
40
|
+
* @inheritDoc
|
|
41
|
+
*/
|
|
42
|
+
static override get isPremiumPlugin(): true;
|
|
43
|
+
/**
|
|
44
|
+
* @inheritDoc
|
|
45
|
+
*/
|
|
46
|
+
constructor(editor: Editor);
|
|
47
|
+
/**
|
|
48
|
+
* @inheritDoc
|
|
49
|
+
*/
|
|
50
|
+
init(): void;
|
|
51
|
+
/**
|
|
52
|
+
* @inheritDoc
|
|
53
|
+
*/
|
|
54
|
+
afterInit(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Check if the given model element is a merge field.
|
|
57
|
+
*
|
|
58
|
+
* It is a merge field if:
|
|
59
|
+
*
|
|
60
|
+
* * it is a `mergeField` or `mergeFieldBlock` element.
|
|
61
|
+
* * it is an `imageBlock` or `imageInline` element with a `src` attribute that matches the merge field pattern.
|
|
62
|
+
*/
|
|
63
|
+
isMergeField(element: ModelElement): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Returns an object with default merge fields values.
|
|
66
|
+
*
|
|
67
|
+
* Custom merge fields (created by user, not defined in the config) will be returned as well, and their value will be set to `null`.
|
|
68
|
+
*
|
|
69
|
+
* Values defined as functions are evaluated and their result is returned.
|
|
70
|
+
*/
|
|
71
|
+
getDefaultValues(): MergeFieldsValues;
|
|
72
|
+
/**
|
|
73
|
+
* Returns an object with merge fields values defined for given data set.
|
|
74
|
+
*
|
|
75
|
+
* Custom merge fields (created by user, not defined in the config) will be returned as well, and their value will be set to `null`.
|
|
76
|
+
*
|
|
77
|
+
* Values defined as functions are evaluated and their result is returned.
|
|
78
|
+
*
|
|
79
|
+
* If the data set is not found, it throws an error.
|
|
80
|
+
*
|
|
81
|
+
* @param dataSetId
|
|
82
|
+
* @param useDefaultValues If set to `true`, merge field default value will be used for these merge fields, for which the data
|
|
83
|
+
* was not defined. If default value is not configured for given merge field, `null` will be still returned.
|
|
84
|
+
*/
|
|
85
|
+
getDataSetValues(dataSetId: string, useDefaultValues?: boolean): MergeFieldsValues;
|
|
86
|
+
/**
|
|
87
|
+
* Retrieves the label for the merge field with the given id.
|
|
88
|
+
*
|
|
89
|
+
* If the merge field definition for given id was not found or a label was not specified, function returns `null`.
|
|
90
|
+
*/
|
|
91
|
+
getLabel(id: string): string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Returns the default value for the merge field with the given id.
|
|
94
|
+
*
|
|
95
|
+
* If the merge field default value was specified as a callback, it will be executed and the result will be returned.
|
|
96
|
+
*
|
|
97
|
+
* If the merge field definition for given id was not found, or a default value was not specified, `null` is returned.
|
|
98
|
+
*/
|
|
99
|
+
getMergeFieldDefaultValue(id: string): string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Returns the value specified for merge field with the given in given data set.
|
|
102
|
+
*
|
|
103
|
+
* If the merge field value was specified as a callback, it will be executed and the result will be returned.
|
|
104
|
+
*
|
|
105
|
+
* If the merge field definition for given id was not found, or the data set has no value for this merge field, `null` is returned.
|
|
106
|
+
*/
|
|
107
|
+
getMergeFieldValue(id: string, dataSetId: string): string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Returns the merge field type of the given element or id.
|
|
110
|
+
*
|
|
111
|
+
* Possible values are: `text`, `block`, `image` or `null` if the element is not a merge field.
|
|
112
|
+
*/
|
|
113
|
+
getMergeFieldType(idOrElement: string | ModelElement): MergeFieldType | null;
|
|
114
|
+
/**
|
|
115
|
+
* Returns the height of the merge field with the given id.
|
|
116
|
+
*
|
|
117
|
+
* If the merge field is of type `block` or `image` and the height is not specified, the default height is returned.
|
|
118
|
+
*
|
|
119
|
+
* If the merge field is of type `text`, `null` is returned.
|
|
120
|
+
*/
|
|
121
|
+
getMergeFieldHeight(id: string): number | null;
|
|
122
|
+
/**
|
|
123
|
+
* Returns the width of the merge field with the given id.
|
|
124
|
+
*
|
|
125
|
+
* If the merge field is of type `image` and the width is not specified, the default width is returned.
|
|
126
|
+
*
|
|
127
|
+
* If the merge field is of type `text` or `block`, `null` is returned.
|
|
128
|
+
*/
|
|
129
|
+
getMergeFieldWidth(id: string): number | null;
|
|
130
|
+
/**
|
|
131
|
+
* Returns ids of all merge fields that are present in the document.
|
|
132
|
+
*/
|
|
133
|
+
getDocumentMergeFieldsIds(): Array<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Returns ids of all merge fields defined in the configuration and custom merge fields added by the user that exist in the document.
|
|
136
|
+
*/
|
|
137
|
+
getMergeFieldsIds(): Array<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Returns the merge field definition for the given id.
|
|
140
|
+
*/
|
|
141
|
+
getDefinition(id: string): MergeFieldDefinition | null;
|
|
142
|
+
/**
|
|
143
|
+
* Triggers the reconversion for all merge field elements in the editor content.
|
|
144
|
+
*
|
|
145
|
+
* It can be used for refreshing the values or default values defined through the callbacks.
|
|
146
|
+
*/
|
|
147
|
+
refreshMergeFields(): void;
|
|
148
148
|
}
|
|
149
149
|
export type MergeFieldsValues = Record<string, string | null>;
|
package/dist/mergefieldsui.d.ts
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin, type Editor } from
|
|
9
|
-
import { ContextualBalloon } from
|
|
10
|
-
import { Widget } from
|
|
11
|
-
import { Mention } from
|
|
12
|
-
import { MergeFieldsEditing } from
|
|
13
|
-
import
|
|
14
|
-
import
|
|
6
|
+
* @module merge-fields/mergefieldsui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { ContextualBalloon } from "@ckeditor/ckeditor5-ui";
|
|
10
|
+
import { Widget } from "@ckeditor/ckeditor5-widget";
|
|
11
|
+
import { Mention } from "@ckeditor/ckeditor5-mention";
|
|
12
|
+
import { MergeFieldsEditing } from "./mergefieldsediting.js";
|
|
13
|
+
import "../theme/mergefields.css";
|
|
14
|
+
import "../theme/insert-dropdown.css";
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
* The merge fields UI feature.
|
|
17
|
+
*/
|
|
18
18
|
export declare class MergeFieldsUI extends Plugin {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get requires(): PluginDependenciesOf<[Mention, MergeFieldsEditing, ContextualBalloon, Widget]>;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static get pluginName(): "MergeFieldsUI";
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static override get isOfficialPlugin(): true;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
static override get isPremiumPlugin(): true;
|
|
35
|
+
/**
|
|
36
|
+
* @inheritDoc
|
|
37
|
+
*/
|
|
38
|
+
constructor(editor: Editor);
|
|
39
|
+
/**
|
|
40
|
+
* @inheritDoc
|
|
41
|
+
*/
|
|
42
|
+
init(): void;
|
|
43
|
+
/**
|
|
44
|
+
* @inheritDoc
|
|
45
|
+
*/
|
|
46
|
+
override destroy(): void;
|
|
47
47
|
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Command, type Editor } from
|
|
6
|
+
* @module merge-fields/previewmergefieldscommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
* The merge fields preview command.
|
|
12
|
+
*
|
|
13
|
+
* The command is registered by {@link module:merge-fields/mergefieldsediting~MergeFieldsEditing} as `'previewMergeFields'`.
|
|
14
|
+
*
|
|
15
|
+
* To change the current merge fields preview mode, execute the command passing the preview name as a parameter:
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* editor.execute( 'previewMergeFields', '$defaultValues' );
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* This command is a simple wrapper for {@link module:merge-fields/mergefieldsediting~MergeFieldsEditing#previewMode}. It binds its
|
|
22
|
+
* {@link #value} to {@link module:merge-fields/mergefieldsediting~MergeFieldsEditing#previewMode} and changes
|
|
23
|
+
* {@link module:merge-fields/mergefieldsediting~MergeFieldsEditing#previewMode} when the command is executed.
|
|
24
|
+
*/
|
|
25
25
|
export declare class PreviewMergeFieldsCommand extends Command {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
26
|
+
/**
|
|
27
|
+
* A name of the current merge fields preview mode.
|
|
28
|
+
*
|
|
29
|
+
* @observable
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
value: string;
|
|
33
|
+
constructor(editor: Editor);
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
override refresh(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the current merge fields preview mode. If it is not one of the available ones, plugin will throw an error.
|
|
40
|
+
*
|
|
41
|
+
* @fires execute
|
|
42
|
+
*/
|
|
43
|
+
override execute(previewId: string): void;
|
|
44
44
|
}
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0x27a950=>0x1!=_0x27a950}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1bd956=>{const {af:{dictionary:_0x294051,getPluralForm:_0x5b5422}}={'af':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0x21085c=>0x1!=_0x21085c}};_0x1bd956['af']||={'dictionary':{},'getPluralForm':null},_0x1bd956['af']['dictionary']=Object['assign'](_0x1bd956['af']['dictionary'],_0x294051),_0x1bd956['af']['getPluralForm']=_0x5b5422;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20merge\x20field':'إدراج\x20حقل\x20دمج','Merge\x20field':'حقل\x20دمج','Search\x20merge\x20field':'البحث\x20عن\x20حقل\x20دمج','No\x20merge\x20fields\x20found':'لم\x20نعثر\x20على\x20حقول\x20دمج','No\x20merge\x20fields\x20available':'لا\x20تتوفر\x20حقول\x20دمج','Merge\x20fields\x20preview':'معاينة\x20حقول\x20الدمج','Labels':'التسميات','Default\x20values':'القيم\x20الافتراضية','WARNING_MISSING_DATA':'القيمة\x20غير\x20متاحة.','WARNING_MISSING_DEFAULT_VALUE':'القيمة\x20الافتراضية\x20غير\x20متاحة.','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':'تم\x20استخدام\x20القيمة\x20الافتراضية.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20merge\x20field':'إدراج\x20حقل\x20دمج','Merge\x20field':'حقل\x20دمج','Search\x20merge\x20field':'البحث\x20عن\x20حقل\x20دمج','No\x20merge\x20fields\x20found':'لم\x20نعثر\x20على\x20حقول\x20دمج','No\x20merge\x20fields\x20available':'لا\x20تتوفر\x20حقول\x20دمج','Merge\x20fields\x20preview':'معاينة\x20حقول\x20الدمج','Labels':'التسميات','Default\x20values':'القيم\x20الافتراضية','WARNING_MISSING_DATA':'القيمة\x20غير\x20متاحة.','WARNING_MISSING_DEFAULT_VALUE':'القيمة\x20الافتراضية\x20غير\x20متاحة.','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':'تم\x20استخدام\x20القيمة\x20الافتراضية.'},'getPluralForm':_0x1accd1=>0x0==_0x1accd1?0x0:0x1==_0x1accd1?0x1:0x2==_0x1accd1?0x2:_0x1accd1%0x64>=0x3&&_0x1accd1%0x64<=0xa?0x3:_0x1accd1%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5e99a9=>{const {ar:{dictionary:_0x906472,getPluralForm:_0x56ca0f}}={'ar':{'dictionary':{'Insert\x20merge\x20field':'إدراج\x20حقل\x20دمج','Merge\x20field':'حقل\x20دمج','Search\x20merge\x20field':'البحث\x20عن\x20حقل\x20دمج','No\x20merge\x20fields\x20found':'لم\x20نعثر\x20على\x20حقول\x20دمج','No\x20merge\x20fields\x20available':'لا\x20تتوفر\x20حقول\x20دمج','Merge\x20fields\x20preview':'معاينة\x20حقول\x20الدمج','Labels':'التسميات','Default\x20values':'القيم\x20الافتراضية','WARNING_MISSING_DATA':'القيمة\x20غير\x20متاحة.','WARNING_MISSING_DEFAULT_VALUE':'القيمة\x20الافتراضية\x20غير\x20متاحة.','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':'تم\x20استخدام\x20القيمة\x20الافتراضية.'},'getPluralForm':_0x540437=>0x0==_0x540437?0x0:0x1==_0x540437?0x1:0x2==_0x540437?0x2:_0x540437%0x64>=0x3&&_0x540437%0x64<=0xa?0x3:_0x540437%0x64>=0xb?0x4:0x5}};_0x5e99a9['ar']||={'dictionary':{},'getPluralForm':null},_0x5e99a9['ar']['dictionary']=Object['assign'](_0x5e99a9['ar']['dictionary'],_0x906472),_0x5e99a9['ar']['getPluralForm']=_0x56ca0f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0x133ff4=>0x1!=_0x133ff4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x21eb63=>{const {ast:{dictionary:_0x4fbc16,getPluralForm:_0x132f5c}}={'ast':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0x1b2c54=>0x1!=_0x1b2c54}};_0x21eb63['ast']||={'dictionary':{},'getPluralForm':null},_0x21eb63['ast']['dictionary']=Object['assign'](_0x21eb63['ast']['dictionary'],_0x4fbc16),_0x21eb63['ast']['getPluralForm']=_0x132f5c;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0x335719=>0x1!=_0x335719}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x34de02=>{const {az:{dictionary:_0x35186d,getPluralForm:_0x459f9b}}={'az':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0x262a0f=>0x1!=_0x262a0f}};_0x34de02['az']||={'dictionary':{},'getPluralForm':null},_0x34de02['az']['dictionary']=Object['assign'](_0x34de02['az']['dictionary'],_0x35186d),_0x34de02['az']['getPluralForm']=_0x459f9b;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0xeaab77=>_0xeaab77%0xa==0x1&&_0xeaab77%0x64!=0xb?0x0:_0xeaab77%0xa>=0x2&&_0xeaab77%0xa<=0x4&&(_0xeaab77%0x64<0xa||_0xeaab77%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x403025=>{const {be:{dictionary:_0x2557d0,getPluralForm:_0x5ba65d}}={'be':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0x1f029f=>_0x1f029f%0xa==0x1&&_0x1f029f%0x64!=0xb?0x0:_0x1f029f%0xa>=0x2&&_0x1f029f%0xa<=0x4&&(_0x1f029f%0x64<0xa||_0x1f029f%0x64>=0x14)?0x1:0x2}};_0x403025['be']||={'dictionary':{},'getPluralForm':null},_0x403025['be']['dictionary']=Object['assign'](_0x403025['be']['dictionary'],_0x2557d0),_0x403025['be']['getPluralForm']=_0x5ba65d;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Insert\x20merge\x20field':'Вмъкване\x20на\x20слято\x20поле','Merge\x20field':'Слято\x20поле','Search\x20merge\x20field':'Търсене\x20на\x20слято\x20поле','No\x20merge\x20fields\x20found':'Не\x20са\x20намерени\x20слети\x20полета','No\x20merge\x20fields\x20available':'Не\x20са\x20налични\x20слети\x20полета','Merge\x20fields\x20preview':'Преглед\x20на\x20слети\x20полета','Labels':'Етиекти','Default\x20values':'Стойности\x20по\x20подразбиране','WARNING_MISSING_DATA':'Стойността\x20не\x20е\x20налична.','WARNING_MISSING_DEFAULT_VALUE':'Стойността\x20по\x20подразбиране\x20не\x20е\x20налична.','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':'Използва\x20се\x20стойност\x20по\x20подразбиране.'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Insert\x20merge\x20field':'Вмъкване\x20на\x20слято\x20поле','Merge\x20field':'Слято\x20поле','Search\x20merge\x20field':'Търсене\x20на\x20слято\x20поле','No\x20merge\x20fields\x20found':'Не\x20са\x20намерени\x20слети\x20полета','No\x20merge\x20fields\x20available':'Не\x20са\x20налични\x20слети\x20полета','Merge\x20fields\x20preview':'Преглед\x20на\x20слети\x20полета','Labels':'Етиекти','Default\x20values':'Стойности\x20по\x20подразбиране','WARNING_MISSING_DATA':'Стойността\x20не\x20е\x20налична.','WARNING_MISSING_DEFAULT_VALUE':'Стойността\x20по\x20подразбиране\x20не\x20е\x20налична.','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':'Използва\x20се\x20стойност\x20по\x20подразбиране.'},'getPluralForm':_0xa6cfa4=>0x1!=_0xa6cfa4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1ee32d=>{const {bg:{dictionary:_0x153434,getPluralForm:_0x5193aa}}={'bg':{'dictionary':{'Insert\x20merge\x20field':'Вмъкване\x20на\x20слято\x20поле','Merge\x20field':'Слято\x20поле','Search\x20merge\x20field':'Търсене\x20на\x20слято\x20поле','No\x20merge\x20fields\x20found':'Не\x20са\x20намерени\x20слети\x20полета','No\x20merge\x20fields\x20available':'Не\x20са\x20налични\x20слети\x20полета','Merge\x20fields\x20preview':'Преглед\x20на\x20слети\x20полета','Labels':'Етиекти','Default\x20values':'Стойности\x20по\x20подразбиране','WARNING_MISSING_DATA':'Стойността\x20не\x20е\x20налична.','WARNING_MISSING_DEFAULT_VALUE':'Стойността\x20по\x20подразбиране\x20не\x20е\x20налична.','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':'Използва\x20се\x20стойност\x20по\x20подразбиране.'},'getPluralForm':_0x358b92=>0x1!=_0x358b92}};_0x1ee32d['bg']||={'dictionary':{},'getPluralForm':null},_0x1ee32d['bg']['dictionary']=Object['assign'](_0x1ee32d['bg']['dictionary'],_0x153434),_0x1ee32d['bg']['getPluralForm']=_0x5193aa;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Insert\x20merge\x20field':'মার্জ\x20ফিল্ড\x20প্রবেশ\x20করান','Merge\x20field':'মার্জ\x20ফিল্ড','Search\x20merge\x20field':'মার্জ\x20ফিল্ড\x20অনুসন্ধান\x20করুন','No\x20merge\x20fields\x20found':'কোনো\x20মার্জ\x20ফিল্ড\x20পাওয়া\x20যায়নি','No\x20merge\x20fields\x20available':'কোনো\x20মার্জ\x20ফিল্ড\x20বিদ্যমান\x20নেই','Merge\x20fields\x20preview':'মার্জ\x20ফিল্ড\x20প্রিভিউ','Labels':'লেবেল','Default\x20values':'ডিফল্ট\x20ভ্যালু','WARNING_MISSING_DATA':'ভ্যালু\x20বিদ্যমান\x20নেই।','WARNING_MISSING_DEFAULT_VALUE':'ডিফল্ট\x20ভ্যালু\x20বিদ্যমান\x20নেই।','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':'ডিফল্ট\x20ভ্যালু\x20ব্যবহার\x20করা\x20হয়।'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Insert\x20merge\x20field':'মার্জ\x20ফিল্ড\x20প্রবেশ\x20করান','Merge\x20field':'মার্জ\x20ফিল্ড','Search\x20merge\x20field':'মার্জ\x20ফিল্ড\x20অনুসন্ধান\x20করুন','No\x20merge\x20fields\x20found':'কোনো\x20মার্জ\x20ফিল্ড\x20পাওয়া\x20যায়নি','No\x20merge\x20fields\x20available':'কোনো\x20মার্জ\x20ফিল্ড\x20বিদ্যমান\x20নেই','Merge\x20fields\x20preview':'মার্জ\x20ফিল্ড\x20প্রিভিউ','Labels':'লেবেল','Default\x20values':'ডিফল্ট\x20ভ্যালু','WARNING_MISSING_DATA':'ভ্যালু\x20বিদ্যমান\x20নেই।','WARNING_MISSING_DEFAULT_VALUE':'ডিফল্ট\x20ভ্যালু\x20বিদ্যমান\x20নেই।','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':'ডিফল্ট\x20ভ্যালু\x20ব্যবহার\x20করা\x20হয়।'},'getPluralForm':_0x4f4345=>0x1!=_0x4f4345}};
|