@progress/kendo-react-editor 7.2.4-develop.2 → 7.2.4-develop.4
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/Editor.js +8 -0
- package/Editor.mjs +327 -0
- package/config/defaultStyles.js +229 -0
- package/config/defaultStyles.mjs +235 -0
- package/config/shortcuts.js +8 -0
- package/config/shortcuts.mjs +34 -0
- package/config/toolsSettings.js +8 -0
- package/config/toolsSettings.mjs +549 -0
- package/dialogs/FindReplace.js +8 -0
- package/dialogs/FindReplace.mjs +214 -0
- package/dialogs/index.js +8 -0
- package/dialogs/index.mjs +30 -0
- package/dialogs/insertImage.js +8 -0
- package/dialogs/insertImage.mjs +117 -0
- package/dialogs/insertLink.js +8 -0
- package/dialogs/insertLink.mjs +96 -0
- package/dialogs/viewHtml.js +8 -0
- package/dialogs/viewHtml.mjs +70 -0
- package/dist/cdn/js/kendo-react-editor.js +8 -226
- package/index.d.mts +2943 -5
- package/index.d.ts +2941 -178
- package/index.js +8 -226
- package/index.mjs +165 -4118
- package/messages/index.js +8 -0
- package/messages/index.mjs +345 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +11 -11
- package/tools/align.js +8 -0
- package/tools/align.mjs +38 -0
- package/tools/applyColor.js +8 -0
- package/tools/applyColor.mjs +34 -0
- package/tools/cleanFormatting.js +8 -0
- package/tools/cleanFormatting.mjs +41 -0
- package/tools/findReplace.js +8 -0
- package/tools/findReplace.mjs +53 -0
- package/tools/fontStyle.js +8 -0
- package/tools/fontStyle.mjs +61 -0
- package/tools/formatBlock.js +8 -0
- package/tools/formatBlock.mjs +60 -0
- package/tools/history.js +8 -0
- package/tools/history.mjs +17 -0
- package/tools/indent.js +8 -0
- package/tools/indent.mjs +43 -0
- package/tools/index.js +8 -0
- package/tools/index.mjs +278 -0
- package/tools/inlineFormat.js +8 -0
- package/tools/inlineFormat.mjs +43 -0
- package/tools/insertImage.js +8 -0
- package/tools/insertImage.mjs +58 -0
- package/tools/insertLink.js +8 -0
- package/tools/insertLink.mjs +61 -0
- package/tools/insertTable/popup.js +8 -0
- package/tools/insertTable/popup.mjs +94 -0
- package/tools/insertTable/popupGrid.js +8 -0
- package/tools/insertTable/popupGrid.mjs +58 -0
- package/tools/insertTable/tool.js +8 -0
- package/tools/insertTable/tool.mjs +73 -0
- package/tools/lists-styled.js +8 -0
- package/tools/lists-styled.mjs +61 -0
- package/tools/lists.js +8 -0
- package/tools/lists.mjs +47 -0
- package/tools/outdent.js +8 -0
- package/tools/outdent.mjs +43 -0
- package/tools/pdf.js +8 -0
- package/tools/pdf.mjs +36 -0
- package/tools/print.js +8 -0
- package/tools/print.mjs +38 -0
- package/tools/proseMirrorTool.js +8 -0
- package/tools/proseMirrorTool.mjs +37 -0
- package/tools/selectAll.js +8 -0
- package/tools/selectAll.mjs +36 -0
- package/tools/table-wizard/cellPropsUtils.js +8 -0
- package/tools/table-wizard/cellPropsUtils.mjs +124 -0
- package/tools/table-wizard/tableCellProperties.js +8 -0
- package/tools/table-wizard/tableCellProperties.mjs +238 -0
- package/tools/table-wizard/tableProperties.js +8 -0
- package/tools/table-wizard/tableProperties.mjs +292 -0
- package/tools/table-wizard/tablePropsUtils.js +8 -0
- package/tools/table-wizard/tablePropsUtils.mjs +288 -0
- package/tools/table-wizard/utils.js +8 -0
- package/tools/table-wizard/utils.mjs +91 -0
- package/tools/tableEdit.js +8 -0
- package/tools/tableEdit.mjs +36 -0
- package/tools/unlink.js +8 -0
- package/tools/unlink.mjs +41 -0
- package/tools/utils.js +8 -0
- package/tools/utils.mjs +51 -0
- package/tools/viewHtml.js +8 -0
- package/tools/viewHtml.mjs +57 -0
- package/utils/browser-detection.js +8 -0
- package/utils/browser-detection.mjs +12 -0
- package/utils/controlled-value.js +8 -0
- package/utils/controlled-value.mjs +19 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +162 -0
- package/utils/props-key.js +8 -0
- package/utils/props-key.mjs +13 -0
- package/Editor.d.ts +0 -122
- package/EditorProps.d.ts +0 -200
- package/config/defaultStyles.d.ts +0 -16
- package/config/pasteSettings.d.ts +0 -10
- package/config/schema.d.ts +0 -5
- package/config/shortcuts.d.ts +0 -28
- package/config/toolsSettings.d.ts +0 -493
- package/dialogs/EditorDialogProps.d.ts +0 -30
- package/dialogs/FindReplace.d.ts +0 -75
- package/dialogs/index.d.ts +0 -53
- package/dialogs/insertImage.d.ts +0 -32
- package/dialogs/insertLink.d.ts +0 -30
- package/dialogs/viewHtml.d.ts +0 -29
- package/messages/index.d.ts +0 -338
- package/package-metadata.d.ts +0 -9
- package/tools/ToolProps.d.ts +0 -41
- package/tools/align.d.ts +0 -11
- package/tools/applyColor.d.ts +0 -16
- package/tools/cleanFormatting.d.ts +0 -20
- package/tools/findReplace.d.ts +0 -33
- package/tools/fontStyle.d.ts +0 -32
- package/tools/formatBlock.d.ts +0 -22
- package/tools/history.d.ts +0 -30
- package/tools/indent.d.ts +0 -21
- package/tools/index.d.ts +0 -718
- package/tools/inlineFormat.d.ts +0 -51
- package/tools/insertImage.d.ts +0 -17
- package/tools/insertLink.d.ts +0 -28
- package/tools/insertTable/index.d.ts +0 -7
- package/tools/insertTable/popup.d.ts +0 -97
- package/tools/insertTable/popupGrid.d.ts +0 -35
- package/tools/insertTable/tool.d.ts +0 -28
- package/tools/lists-styled.d.ts +0 -8
- package/tools/lists.d.ts +0 -31
- package/tools/outdent.d.ts +0 -21
- package/tools/pdf.d.ts +0 -29
- package/tools/print.d.ts +0 -20
- package/tools/proseMirrorTool.d.ts +0 -16
- package/tools/selectAll.d.ts +0 -20
- package/tools/table-wizard/cellPropsUtils.d.ts +0 -40
- package/tools/table-wizard/tableCellProperties.d.ts +0 -24
- package/tools/table-wizard/tableProperties.d.ts +0 -15
- package/tools/table-wizard/tablePropsUtils.d.ts +0 -56
- package/tools/table-wizard/utils.d.ts +0 -43
- package/tools/tableEdit.d.ts +0 -102
- package/tools/unlink.d.ts +0 -21
- package/tools/utils.d.ts +0 -54
- package/tools/viewHtml.d.ts +0 -28
- package/utils/browser-detection.d.ts +0 -8
- package/utils/controlled-value.d.ts +0 -9
- package/utils/index.d.ts +0 -367
- package/utils/props-key.d.ts +0 -9
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const e = `
|
|
10
|
+
html, body {
|
|
11
|
+
margin: 0;
|
|
12
|
+
height: 100%;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
html {
|
|
17
|
+
min-height: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
position: relative;
|
|
23
|
+
word-wrap: break-word;
|
|
24
|
+
padding: 8px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
body > .k-content {
|
|
28
|
+
outline: 0;
|
|
29
|
+
height: 100%;
|
|
30
|
+
white-space: pre-wrap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.k-content > p {
|
|
34
|
+
margin: 0 0 1em;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.k-content table {
|
|
38
|
+
white-space: pre-wrap;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.k-content .k-text-selected, .k-content::selection {
|
|
42
|
+
color: HighlightText;
|
|
43
|
+
background-color: Highlight;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.k-content .k-text-highlighted {
|
|
47
|
+
background-color: #bbdefb;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.k-content .ProseMirror-selectednode {
|
|
51
|
+
outline: 2px solid #8cf;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ProseMirror-hideselection *::selection { background: transparent; }
|
|
55
|
+
.ProseMirror-hideselection *::-moz-selection { background: transparent; }
|
|
56
|
+
.ProseMirror-hideselection { caret-color: transparent; }
|
|
57
|
+
|
|
58
|
+
.ProseMirror-gapcursor {
|
|
59
|
+
display: none;
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
position: absolute;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ProseMirror-gapcursor:after {
|
|
65
|
+
content: "";
|
|
66
|
+
display: block;
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: -2px;
|
|
69
|
+
width: 20px;
|
|
70
|
+
border-top: 1px solid black;
|
|
71
|
+
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@keyframes ProseMirror-cursor-blink {
|
|
75
|
+
to {
|
|
76
|
+
visibility: hidden;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ProseMirror-focused .ProseMirror-gapcursor {
|
|
81
|
+
display: block;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.k-editor-resize-handles-wrapper {
|
|
85
|
+
position: absolute;
|
|
86
|
+
visibility: hidden;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.k-editor-resize-handle {
|
|
90
|
+
position: absolute;
|
|
91
|
+
visibility: visible;
|
|
92
|
+
background-color: #fff;
|
|
93
|
+
border: 1px solid #000;
|
|
94
|
+
z-index: 100;
|
|
95
|
+
width: 5px;
|
|
96
|
+
height: 5px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.k-editor-resize-handle.northwest {
|
|
100
|
+
top: 0;
|
|
101
|
+
left: 0;
|
|
102
|
+
transform: translate(-50%, -50%);
|
|
103
|
+
cursor: nw-resize;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.k-editor-resize-handle.north {
|
|
107
|
+
top: 0;
|
|
108
|
+
left: 50%;
|
|
109
|
+
transform: translate(-50%, -50%);
|
|
110
|
+
cursor: n-resize;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.k-editor-resize-handle.northeast {
|
|
114
|
+
top: 0;
|
|
115
|
+
right: 0;
|
|
116
|
+
transform: translate(50%, -50%);
|
|
117
|
+
cursor: ne-resize;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.k-editor-resize-handle.southwest {
|
|
121
|
+
left: 0;
|
|
122
|
+
bottom: 0;
|
|
123
|
+
transform: translate(-50%, 50%);
|
|
124
|
+
cursor: sw-resize;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.k-editor-resize-handle.south {
|
|
128
|
+
bottom: 0;
|
|
129
|
+
left: 50%;
|
|
130
|
+
transform: translate(-50%, 50%);
|
|
131
|
+
cursor: s-resize;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.k-editor-resize-handle.southeast {
|
|
135
|
+
right: 0;
|
|
136
|
+
bottom: 0;
|
|
137
|
+
transform: translate(50%, 50%);
|
|
138
|
+
cursor: se-resize;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.k-editor-resize-handle.west {
|
|
142
|
+
top: 50%;
|
|
143
|
+
left: 0;
|
|
144
|
+
transform: translate(-50%, -50%);
|
|
145
|
+
cursor: w-resize;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.k-editor-resize-handle.east {
|
|
149
|
+
top: 50%;
|
|
150
|
+
right: 0;
|
|
151
|
+
transform: translate(50%, -50%);
|
|
152
|
+
cursor: e-resize;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.k-editor-resize-wrap-element {
|
|
156
|
+
display: inline-block;
|
|
157
|
+
position: relative;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.ProseMirror .row-resize-handle {
|
|
161
|
+
position: absolute;
|
|
162
|
+
right: 0; left: 0; bottom: 0;
|
|
163
|
+
transform: translate(0, 50%);
|
|
164
|
+
height: 4px;
|
|
165
|
+
z-index: 20;
|
|
166
|
+
background-color: #adf;
|
|
167
|
+
pointer-events: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.ProseMirror .column-resize-handle {
|
|
171
|
+
position: absolute;
|
|
172
|
+
right: -2px; top: 0; bottom: 0;
|
|
173
|
+
width: 4px;
|
|
174
|
+
z-index: 20;
|
|
175
|
+
background-color: #adf;
|
|
176
|
+
pointer-events: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ProseMirror.resize-cursor {
|
|
180
|
+
cursor: ew-resize;
|
|
181
|
+
cursor: col-resize;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.ProseMirror.resize-cursor-vertical {
|
|
185
|
+
cursor: sn-resize;
|
|
186
|
+
cursor: row-resize;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.k-editor-resize-wrap-element table td p,
|
|
190
|
+
.k-editor-resize-wrap-element table th p {
|
|
191
|
+
margin: 0 auto;
|
|
192
|
+
}
|
|
193
|
+
`, r = `
|
|
194
|
+
.ProseMirror .tableWrapper {
|
|
195
|
+
overflow-x: auto;
|
|
196
|
+
margin: 1em 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.ProseMirror table {
|
|
200
|
+
margin: 0;
|
|
201
|
+
border-collapse: collapse;
|
|
202
|
+
table-layout: fixed;
|
|
203
|
+
width: 100%;
|
|
204
|
+
overflow: hidden;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.ProseMirror td, .ProseMirror th {
|
|
208
|
+
min-width: 1em;
|
|
209
|
+
border: 1px solid #ddd;
|
|
210
|
+
padding: 3px 5px;
|
|
211
|
+
vertical-align: top;
|
|
212
|
+
box-sizing: border-box;
|
|
213
|
+
position: relative;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ProseMirror th {
|
|
217
|
+
font-weight: bold;
|
|
218
|
+
text-align: left;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* Give selected cells a blue overlay */
|
|
222
|
+
.ProseMirror .selectedCell:after {
|
|
223
|
+
z-index: 2;
|
|
224
|
+
position: absolute;
|
|
225
|
+
content: "";
|
|
226
|
+
left: 0; right: 0; top: 0; bottom: 0;
|
|
227
|
+
background: rgba(200, 200, 255, 0.4);
|
|
228
|
+
pointer-events: none;
|
|
229
|
+
}
|
|
230
|
+
`, o = "body { direction: rtl }";
|
|
231
|
+
export {
|
|
232
|
+
e as defaultStyle,
|
|
233
|
+
o as rtlStyles,
|
|
234
|
+
r as tablesStyles
|
|
235
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@progress/kendo-editor-common"),d=require("./toolsSettings.js"),{bold:u,underline:m,italic:S}=d.EditorToolsSettings,i=typeof navigator!="undefined"?/Mac/.test(navigator.platform):!1,g=r=>{const n=t.chainCommands(t.exitCode,(e,o)=>{const c=r&&r.types&&r.types.hardBreak||"hard_break",a=e.schema.nodes[c];return o&&o(e.tr.replaceSelectionWith(a.create()).scrollIntoView()),!0}),s=r&&r.types&&r.types.listItem||"list_item",l=r&&r.toolsSettings||{};return{"Mod-b":(e,o)=>t.toggleInlineFormat(l.bold||u)(e,o),"Mod-i":(e,o)=>t.toggleInlineFormat(l.italic||S)(e,o),"Mod-u":(e,o)=>t.toggleInlineFormat(l.underline||m)(e,o),"Mod-z":t.undo,"Shift-Mod-z":t.redo,...i?{}:{"Mod-y":t.redo},Backspace:t.undoInputRule,"Mod-Enter":n,"Shift-Enter":n,...i?{"Ctrl-Enter":n}:{},Enter:(e,o)=>t.splitListItem(e.schema.nodes[s])(e,o),Tab:t.goToNextCell(1),"Shift-Tab":t.goToNextCell(-1)}};exports.getShortcuts=g;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { chainCommands as u, exitCode as h, toggleInlineFormat as i, undo as p, redo as l, undoInputRule as f, splitListItem as S, goToNextCell as c } from "@progress/kendo-editor-common";
|
|
10
|
+
import { EditorToolsSettings as M } from "./toolsSettings.mjs";
|
|
11
|
+
const { bold: b, underline: y, italic: I } = M, s = typeof navigator != "undefined" ? /Mac/.test(navigator.platform) : !1, B = (e) => {
|
|
12
|
+
const r = u(h, (t, o) => {
|
|
13
|
+
const d = e && e.types && e.types.hardBreak || "hard_break", m = t.schema.nodes[d];
|
|
14
|
+
return o && o(t.tr.replaceSelectionWith(m.create()).scrollIntoView()), !0;
|
|
15
|
+
}), a = e && e.types && e.types.listItem || "list_item", n = e && e.toolsSettings || {};
|
|
16
|
+
return {
|
|
17
|
+
"Mod-b": (t, o) => i(n.bold || b)(t, o),
|
|
18
|
+
"Mod-i": (t, o) => i(n.italic || I)(t, o),
|
|
19
|
+
"Mod-u": (t, o) => i(n.underline || y)(t, o),
|
|
20
|
+
"Mod-z": p,
|
|
21
|
+
"Shift-Mod-z": l,
|
|
22
|
+
...s ? {} : { "Mod-y": l },
|
|
23
|
+
Backspace: f,
|
|
24
|
+
"Mod-Enter": r,
|
|
25
|
+
"Shift-Enter": r,
|
|
26
|
+
...s ? { "Ctrl-Enter": r } : {},
|
|
27
|
+
Enter: (t, o) => S(t.schema.nodes[a])(t, o),
|
|
28
|
+
Tab: c(1),
|
|
29
|
+
"Shift-Tab": c(-1)
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
B as getShortcuts
|
|
34
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../messages/index.js"),s=require("@progress/kendo-svg-icons"),l=require("@progress/kendo-editor-common"),i={...l.indentRules.listsTypes};exports.EditorToolsSettings=void 0;(n=>{const a={type:"button"};n.bold={...l.bold,props:{icon:"bold",svgIcon:s.boldIcon,...a},messages:{title:e.keys.bold},commandName:"Bold"},n.italic={...l.italic,props:{icon:"italic",svgIcon:s.italicIcon,...a},messages:{title:e.keys.italic},commandName:"Italic"},n.underline={...l.underline,props:{icon:"underline",svgIcon:s.underlineIcon,...a},messages:{title:e.keys.underline},commandName:"Underline"},n.strikethrough={...l.strikethrough,props:{icon:"strikethrough",svgIcon:s.strikethroughIcon,...a},messages:{title:e.keys.strikethrough},commandName:"Strikethrough"},n.subscript={...l.subscript,props:{icon:"subscript",svgIcon:s.subscriptIcon,...a},messages:{title:e.keys.subscript},commandName:"Subscript"},n.superscript={...l.superscript,props:{icon:"supscript",svgIcon:s.supscriptIcon,...a},messages:{title:e.keys.superscript},commandName:"Superscript"},n.link={...l.link,props:{icon:"link",svgIcon:s.linkIcon,...a},messages:{insertHyperlink:e.keys.insertHyperlink,insertHyperlinkDialogTitle:e.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:e.keys.insertHyperlinkAddress,insertHyperlinkTitle:e.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:e.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:e.keys.insertHyperlinkCancel,insertHyperlinkInsert:e.keys.insertHyperlinkInsert},commandName:"Link"},n.insertFile={...l.link,props:{icon:"file-add",svgIcon:s.fileAddIcon,...a},messages:{insertHyperlink:e.keys.insertFile,insertHyperlinkDialogTitle:e.keys.insertFileDialogTitle,insertHyperlinkAddress:e.keys.insertFileAddress,insertHyperlinkTitle:e.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:e.keys.insertFileCancel,insertHyperlinkInsert:e.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1},n.insertTable={props:{icon:"table-add",svgIcon:s.tableAddIcon,...a},messages:{createTable:e.keys.createTable,createTableHint:e.keys.createTableHint},commandName:"InsertTable"},n.addRowBefore={props:{icon:"table-row-insert-above",svgIcon:s.tableRowInsertAboveIcon,...a},messages:{title:e.keys.addRowBefore},commandName:"AddRowBefore"},n.addRowAfter={props:{icon:"table-row-insert-below",svgIcon:s.tableRowInsertBelowIcon,...a},messages:{title:e.keys.addRowAfter},commandName:"AddRowAfter"},n.addColumnBefore={props:{icon:"table-column-insert-left",svgIcon:s.tableColumnInsertLeftIcon,...a},messages:{title:e.keys.addColumnBefore},commandName:"AddColumnBefore"},n.addColumnAfter={props:{icon:"table-column-insert-right",svgIcon:s.tableColumnInsertRightIcon,...a},messages:{title:e.keys.addColumnAfter},commandName:"AddColumnAfter"},n.deleteRow={props:{icon:"table-row-delete",svgIcon:s.tableRowDeleteIcon,...a},messages:{title:e.keys.deleteRow},commandName:"DeleteRow"},n.deleteColumn={props:{icon:"table-column-delete",svgIcon:s.tableColumnDeleteIcon,...a},messages:{title:e.keys.deleteColumn},commandName:"DeleteColumn"},n.deleteTable={props:{icon:"table-delete",svgIcon:s.tableDeleteIcon,...a},messages:{title:e.keys.deleteTable},commandName:"DeleteTable"},n.mergeCells={props:{icon:"cells-merge",svgIcon:s.cellsMergeIcon,...a},messages:{title:e.keys.mergeCells},commandName:"MergeCells"},n.splitCell={props:{icon:"cell-split-horizontally",svgIcon:s.cellSplitHorizontallyIcon,...a},messages:{title:e.keys.splitCell},commandName:"SplitCell"},n.print={props:{icon:"print",svgIcon:s.printIcon,...a},messages:{title:e.keys.print}},n.selectAll={props:{icon:"select-all",svgIcon:s.selectAllIcon,...a},messages:{title:e.keys.selectAll}},n.pdf={props:{icon:"file-pdf",svgIcon:s.filePdfIcon,...a},messages:{title:e.keys.pdf}},n.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},n.cleanFormatting={props:{icon:"clear-css",svgIcon:s.clearCssIcon,...a},messages:{title:e.keys.cleanFormatting},commandName:"CleanFormatting"},n.image={node:"image",props:{icon:"image",svgIcon:s.imageIcon,...a},messages:{insertImage:e.keys.insertImage,insertImageDialogTitle:e.keys.insertImageDialogTitle,insertImageAddress:e.keys.insertImageAddress,insertImageTitle:e.keys.insertImageTitle,insertImageAltText:e.keys.insertImageAltText,insertImageWidth:e.keys.insertImageWidth,insertImageHeight:e.keys.insertImageHeight,insertImageCancel:e.keys.insertImageCancel,insertImageInsert:e.keys.insertImageInsert},commandName:"InsertImage"},n.viewHtml={props:{icon:"code",svgIcon:s.codeIcon,...a},messages:{viewHtml:e.keys.viewHtml,viewHtmlDialogTitle:e.keys.viewHtmlDialogTitle,viewHtmlCancel:e.keys.viewHtmlCancel,viewHtmlUpdate:e.keys.viewHtmlUpdate},commandName:"SetContent"},n.findAndReplace={props:{icon:"find",svgIcon:s.binocularsIcon,...a},messages:{findReplaceToolTitle:e.keys.findReplaceToolTitle,findReplaceDialogTitle:e.keys.findReplaceDialogTitle,findReplaceTabFind:e.keys.findReplaceTabFind,findReplaceTabReplace:e.keys.findReplaceTabReplace,findReplaceFindWhat:e.keys.findReplaceFindWhat,findReplaceReplaceWith:e.keys.findReplaceReplaceWith,findReplaceReplace:e.keys.findReplaceReplace,findReplaceReplaceAll:e.keys.findReplaceReplaceAll,findReplaceMatchCase:e.keys.findReplaceMatchCase,findReplaceMatchWord:e.keys.findReplaceMatchWord,findReplaceMatchCyclic:e.keys.findReplaceMatchCyclic,findReplaceUseRegExp:e.keys.findReplaceUseRegExp,findReplacePrevMatch:e.keys.findReplacePrevMatch,findReplaceNextMatch:e.keys.findReplaceNextMatch,findReplaceMatches:e.keys.findReplaceMatches}},n.unlink={...l.link,props:{icon:"unlink",svgIcon:s.unlinkIcon,...a},messages:{title:e.keys.unlink},commandName:"Unlink"},n.undo={props:{icon:"undo",svgIcon:s.undoIcon,...a},messages:{title:e.keys.undo},commandName:"Undo"},n.redo={props:{icon:"redo",svgIcon:s.redoIcon,...a},messages:{title:e.keys.redo},commandName:"Redo"},n.fontSize={style:"font-size",defaultItem:{text:e.messages[e.keys.fontSize],value:"",localizationKey:e.keys.fontSize},items:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],commandName:"FontSize"},n.fontName={style:"font-family",defaultItem:{text:e.messages[e.keys.fontName],value:"",localizationKey:e.keys.fontName},items:[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],commandName:"FontName"},n.formatBlock={defaultItem:{text:e.messages[e.keys.format],value:"",localizationKey:e.keys.format},items:[{text:"Paragraph",value:"p",style:{display:"block",marginLeft:0}},{text:"Heading 1",value:"h1",style:{display:"block",fontSize:"2em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 2",value:"h2",style:{display:"block",fontSize:"1.5em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 3",value:"h3",style:{display:"block",fontSize:"1.17em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 4",value:"h4",style:{display:"block",fontSize:"1em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 5",value:"h5",style:{display:"block",fontSize:"0.83em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 6",value:"h6",style:{display:"block",fontSize:"0.67em",marginLeft:0,fontWeight:"bold"}}],commandName:"FormatBlock"},n.foreColor={style:"color",colorPickerProps:{icon:"foreground-color",svgIcon:s.foregroundColorIcon,view:"palette",title:e.keys.foregroundColor,ariaLabel:e.keys.foreColorLabel},commandName:"ForeColor"},n.backColor={style:"background-color",colorPickerProps:{icon:"droplet",svgIcon:s.dropletIcon,view:"palette",title:e.keys.backgroundColor,ariaLabel:e.keys.backColorLabel},commandName:"BackColor"},n.alignLeft={actions:[...l.alignLeftRules],props:{icon:"align-left",svgIcon:s.alignLeftIcon,...a},messages:{title:e.keys.alignLeft},commandName:"AlignLeft"},n.alignRight={actions:[...l.alignRightRules],props:{icon:"align-right",svgIcon:s.alignRightIcon,...a},messages:{title:e.keys.alignRight},commandName:"AlignRight"},n.alignCenter={actions:[...l.alignCenterRules],props:{icon:"align-center",svgIcon:s.alignCenterIcon,...a},messages:{title:e.keys.alignCenter},commandName:"AlignCenter"},n.alignJustify={actions:[...l.alignJustifyRules],props:{icon:"align-justify",svgIcon:s.alignJustifyIcon,...a},messages:{title:e.keys.alignJustify},commandName:"AlignJustify"},n.alignRemove={actions:[...l.alignRemoveRules],props:{icon:"align-remove",svgIcon:s.alignRemoveIcon,...a},messages:{},commandName:"AlignRemove"},n.indent={actions:l.indentRules.nodes,listsTypes:i,props:{icon:"indent",svgIcon:s.indentIcon,...a},messages:{title:e.keys.indent},commandName:"Indent"},n.outdent={actions:l.outdentRules.nodes,listsTypes:i,props:{icon:"outdent",svgIcon:s.outdentIcon,...a},messages:{title:e.keys.outdent},commandName:"Outdent"},n.orderedList={listType:i.orderedList,props:{icon:"list-ordered",svgIcon:s.listOrderedIcon,...a},messages:{title:e.keys.orderedList},commandName:"OrderedList",types:{...i}},n.bulletList={listType:i.bulletList,props:{icon:"list-unordered",svgIcon:s.listUnorderedIcon,...a},messages:{title:e.keys.bulletList},commandName:"UnorderedList",types:{...i}}})(exports.EditorToolsSettings||(exports.EditorToolsSettings={}));exports.listsTypes=i;
|