@progress/kendo-vue-editor 11.0.0 → 11.0.1-develop.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/Editor.d.ts +15 -52
- package/EditorProps.d.ts +57 -43
- package/config/pasteSettings.d.ts +1 -1
- package/config/toolsSettings.d.ts +72 -33
- package/dist/cdn/js/kendo-vue-editor.js +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -13
- package/tools/ToolProps.d.ts +2 -2
- package/tools/pdf.d.ts +3 -3
- package/tools/print.d.ts +1 -1
- package/utils/cleanup.d.ts +5 -5
- package/utils/main.d.ts +85 -85
package/Editor.d.ts
CHANGED
|
@@ -429,58 +429,10 @@ export declare const allTools: {
|
|
|
429
429
|
};
|
|
430
430
|
};
|
|
431
431
|
/**
|
|
432
|
-
* Represents the [
|
|
432
|
+
* Represents the [KendoVue Editor component](slug:overview_editor).
|
|
433
433
|
*
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
* <div>
|
|
437
|
-
* <Editor
|
|
438
|
-
* :tools="tools"
|
|
439
|
-
* :content-style="{
|
|
440
|
-
* height: '690px',
|
|
441
|
-
* }"
|
|
442
|
-
* :default-content="content"
|
|
443
|
-
* />
|
|
444
|
-
* </div>
|
|
445
|
-
* </template>
|
|
446
|
-
*
|
|
447
|
-
* <script>
|
|
448
|
-
* import { Editor } from "@progress/kendo-vue-editor";
|
|
449
|
-
* import content from "./content-overview";
|
|
450
|
-
*
|
|
451
|
-
* export default {
|
|
452
|
-
* components: {
|
|
453
|
-
* Editor,
|
|
454
|
-
* },
|
|
455
|
-
* data() {
|
|
456
|
-
* return {
|
|
457
|
-
* tools: [
|
|
458
|
-
* ["Bold", "Italic", "Underline", "Strikethrough"],
|
|
459
|
-
* ["Subscript", "Superscript"],
|
|
460
|
-
* ["AlignLeft", "AlignCenter", "AlignRight", "AlignJustify"],
|
|
461
|
-
* ["Indent", "Outdent"],
|
|
462
|
-
* ["OrderedList", "UnorderedList"],
|
|
463
|
-
* "FontSize",
|
|
464
|
-
* "FontName",
|
|
465
|
-
* "FormatBlock",
|
|
466
|
-
* ["Undo", "Redo"],
|
|
467
|
-
* ["Link", "Unlink", "InsertImage", "ViewHtml"],
|
|
468
|
-
* ["InsertTable"],
|
|
469
|
-
* ["AddRowBefore", "AddRowAfter", "AddColumnBefore", "AddColumnAfter"],
|
|
470
|
-
* ["DeleteRow", "DeleteColumn", "DeleteTable"],
|
|
471
|
-
* ["MergeCells", "SplitCell"],
|
|
472
|
-
* ],
|
|
473
|
-
* content: content,
|
|
474
|
-
* };
|
|
475
|
-
* },
|
|
476
|
-
* };
|
|
477
|
-
* </script>
|
|
478
|
-
* ```
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
* ### props <span class='code'>Readonly<[EditorProps]({% slug api_editor_editorprops %})</span>
|
|
483
|
-
* The props of the Editor component.
|
|
434
|
+
* ### props <span class='code'>Readonly<[EditorProps](slug:api_editor_editorprops)</span>
|
|
435
|
+
* The props of the Editor.
|
|
484
436
|
*
|
|
485
437
|
* ### contentElement <span class='code'>HTMLDivElement</span>
|
|
486
438
|
* Returns the content-editable DOM element of the Editor.
|
|
@@ -489,10 +441,21 @@ export declare const allTools: {
|
|
|
489
441
|
* Returns the DOM element of the Editor.
|
|
490
442
|
*
|
|
491
443
|
* ### value <span class='code'>Node | string</span>
|
|
492
|
-
*
|
|
444
|
+
* Returns the value of the Editor.
|
|
493
445
|
*
|
|
494
446
|
* ### view <span class='code'>EditorView<any></span>
|
|
495
447
|
* Returns the `view` object of the Editor.
|
|
448
|
+
*
|
|
449
|
+
* @example
|
|
450
|
+
* ```vue
|
|
451
|
+
* <Editor
|
|
452
|
+
* :tools="[['Bold', 'Italic', 'Underline'], ['Undo', 'Redo']]"
|
|
453
|
+
* :content-style="{ height: '300px' }"
|
|
454
|
+
* :default-content="'<p>Order #10248 ships today.</p>'"
|
|
455
|
+
* :default-edit-mode="'div'"
|
|
456
|
+
* :resizable="true"
|
|
457
|
+
* />
|
|
458
|
+
* ```
|
|
496
459
|
*/
|
|
497
460
|
declare const Editor: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
498
461
|
defaultContent: PropType<string>;
|
package/EditorProps.d.ts
CHANGED
|
@@ -9,36 +9,36 @@ import { EditorState, Plugin, Transaction, EditorView, Schema, Node } from '@pro
|
|
|
9
9
|
import { EditorUtils } from './utils/main';
|
|
10
10
|
interface EditorEvent {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* The target of the event.
|
|
13
13
|
*/
|
|
14
14
|
target: any;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Represents the object of the `
|
|
17
|
+
* Represents the object of the `change` event of the Editor.
|
|
18
18
|
*/
|
|
19
19
|
export interface EditorChangeEvent extends EditorEvent {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* The [Editor document](https://prosemirror.net/docs/guide/#doc).
|
|
22
22
|
*/
|
|
23
23
|
value: Node;
|
|
24
24
|
/**
|
|
25
|
-
* A getter
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* this conversion
|
|
25
|
+
* A getter that returns the HTML content of the Editor.
|
|
26
|
+
* When you call it, it converts the Editor document into an HTML string.
|
|
27
|
+
* The `change` event fires on every key press while you type,
|
|
28
|
+
* so this conversion can be slow when the Editor holds a large amount of content.
|
|
29
29
|
*/
|
|
30
30
|
html: string;
|
|
31
31
|
/**
|
|
32
|
-
* The
|
|
32
|
+
* The `Schema` object of the Editor.
|
|
33
33
|
*/
|
|
34
34
|
schema: Schema;
|
|
35
35
|
/**
|
|
36
|
-
* The Transaction
|
|
36
|
+
* The `Transaction` that causes the change.
|
|
37
37
|
*/
|
|
38
38
|
transaction: Transaction;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* Represents the object of the `
|
|
41
|
+
* Represents the object of the `loaded` event of the Editor.
|
|
42
42
|
*/
|
|
43
43
|
export interface EditorMountEvent extends EditorEvent {
|
|
44
44
|
/**
|
|
@@ -46,7 +46,7 @@ export interface EditorMountEvent extends EditorEvent {
|
|
|
46
46
|
*/
|
|
47
47
|
dom: HTMLDivElement;
|
|
48
48
|
/**
|
|
49
|
-
* The default plugins
|
|
49
|
+
* The default plugins of the Editor.
|
|
50
50
|
*/
|
|
51
51
|
plugins: Array<Plugin>;
|
|
52
52
|
/**
|
|
@@ -62,11 +62,11 @@ export interface EditorMountEvent extends EditorEvent {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
* Represents the object
|
|
65
|
+
* Represents the object that the `pasteHtml` function of the Editor receives.
|
|
66
66
|
*/
|
|
67
67
|
export interface EditorPasteEvent extends EditorEvent {
|
|
68
68
|
/**
|
|
69
|
-
* The HTML that
|
|
69
|
+
* The HTML that the Editor is about to paste.
|
|
70
70
|
*/
|
|
71
71
|
pastedHtml: string;
|
|
72
72
|
/**
|
|
@@ -75,11 +75,11 @@ export interface EditorPasteEvent extends EditorEvent {
|
|
|
75
75
|
event: ClipboardEvent;
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
|
-
* Represents the object of the `
|
|
78
|
+
* Represents the object of the `execute` event of the Editor.
|
|
79
79
|
*/
|
|
80
80
|
export interface EditorExecuteEvent extends EditorEvent {
|
|
81
81
|
/**
|
|
82
|
-
* The transaction that
|
|
82
|
+
* The transaction that the Editor is about to execute.
|
|
83
83
|
*/
|
|
84
84
|
transaction: Transaction;
|
|
85
85
|
/**
|
|
@@ -88,7 +88,7 @@ export interface EditorExecuteEvent extends EditorEvent {
|
|
|
88
88
|
state: EditorState;
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
* Represents the object of the `
|
|
91
|
+
* Represents the object of the `focus` event of the Editor.
|
|
92
92
|
*/
|
|
93
93
|
export interface EditorFocusEvent extends EditorEvent {
|
|
94
94
|
/**
|
|
@@ -97,7 +97,7 @@ export interface EditorFocusEvent extends EditorEvent {
|
|
|
97
97
|
event: FocusEvent;
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* Represents the object of the `
|
|
100
|
+
* Represents the object of the `blur` event of the Editor.
|
|
101
101
|
*/
|
|
102
102
|
export interface EditorBlurEvent extends EditorEvent {
|
|
103
103
|
/**
|
|
@@ -106,27 +106,29 @@ export interface EditorBlurEvent extends EditorEvent {
|
|
|
106
106
|
event: FocusEvent;
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Represents the props of the [
|
|
109
|
+
* Represents the props of the [KendoVue Editor component](slug:overview_editor).
|
|
110
110
|
*/
|
|
111
111
|
export interface EditorProps {
|
|
112
112
|
/**
|
|
113
|
-
* Sets the
|
|
113
|
+
* Sets the initial HTML content of the Editor.
|
|
114
114
|
*/
|
|
115
115
|
defaultContent?: string;
|
|
116
116
|
/**
|
|
117
|
-
* Sets the initial edit mode of the Editor.
|
|
117
|
+
* Sets the initial edit mode of the Editor.
|
|
118
|
+
*
|
|
119
|
+
* @default `'iframe'`
|
|
118
120
|
*/
|
|
119
121
|
defaultEditMode?: 'iframe' | 'div' | string;
|
|
120
122
|
/**
|
|
121
|
-
* Sets styles
|
|
123
|
+
* Sets the styles of the content element wrapper of the Editor.
|
|
122
124
|
*/
|
|
123
125
|
contentStyle?: object;
|
|
124
126
|
/**
|
|
125
|
-
*
|
|
127
|
+
* Sets the `dir` HTML attribute of the Editor.
|
|
126
128
|
*/
|
|
127
129
|
dir?: string;
|
|
128
130
|
/**
|
|
129
|
-
*
|
|
131
|
+
* Sets whether you can resize the Editor.
|
|
130
132
|
*/
|
|
131
133
|
resizable?: boolean;
|
|
132
134
|
/**
|
|
@@ -134,20 +136,20 @@ export interface EditorProps {
|
|
|
134
136
|
*/
|
|
135
137
|
tools?: Array<any>;
|
|
136
138
|
/**
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
+
* Sets a function that runs each time the Editor is about to insert pasted content.
|
|
140
|
+
* Use it to change the pasted content.
|
|
139
141
|
*/
|
|
140
142
|
pasteHtml?: (event: EditorPasteEvent) => string | void;
|
|
141
143
|
/**
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* To
|
|
144
|
+
* Sets a function that runs each time the Editor is about to mount.
|
|
145
|
+
* Use it to configure the `EditorView` object.
|
|
146
|
+
* To create the `EditorView`, use the properties of the `event` object.
|
|
145
147
|
*/
|
|
146
148
|
extendView?: (event: EditorMountEvent) => EditorView | void;
|
|
147
149
|
/**
|
|
148
150
|
* Fires each time the Editor is about to mount.
|
|
149
|
-
*
|
|
150
|
-
* To
|
|
151
|
+
* Use it to configure the `EditorView` object.
|
|
152
|
+
* To create the `EditorView`, use the properties of the `event` object.
|
|
151
153
|
*/
|
|
152
154
|
onLoaded?: (event: EditorMountEvent) => EditorView | void;
|
|
153
155
|
/**
|
|
@@ -156,11 +158,11 @@ export interface EditorProps {
|
|
|
156
158
|
*/
|
|
157
159
|
onExecute?: (event: EditorExecuteEvent) => boolean | void;
|
|
158
160
|
/**
|
|
159
|
-
* Fires when the
|
|
161
|
+
* Fires when the content element of the Editor receives focus.
|
|
160
162
|
*/
|
|
161
163
|
onFocus?: (event: EditorFocusEvent) => void;
|
|
162
164
|
/**
|
|
163
|
-
* Fires when the
|
|
165
|
+
* Fires when the content element of the Editor loses focus.
|
|
164
166
|
*/
|
|
165
167
|
onBlur?: (event: EditorBlurEvent) => void;
|
|
166
168
|
/**
|
|
@@ -168,33 +170,45 @@ export interface EditorProps {
|
|
|
168
170
|
*/
|
|
169
171
|
onChange?: (event: EditorChangeEvent) => void;
|
|
170
172
|
/**
|
|
171
|
-
*
|
|
173
|
+
* Sets the value of the Editor.
|
|
172
174
|
*/
|
|
173
175
|
value?: Node | string;
|
|
174
176
|
/**
|
|
175
|
-
*
|
|
177
|
+
* Turns the built-in keyboard navigation of the Editor toolbar on or off.
|
|
178
|
+
* To turn it off, set it to `false`.
|
|
179
|
+
*
|
|
180
|
+
* @default `true`
|
|
176
181
|
*/
|
|
177
182
|
keyboardNavigation?: boolean;
|
|
178
183
|
/**
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* `full
|
|
184
|
+
* Sets how the Editor handles whitespace when it parses HTML.
|
|
185
|
+
* When you set it to `false`, the Editor collapses whitespace by the HTML rules.
|
|
186
|
+
* When you set it to `true`, the Editor keeps whitespace but turns newlines into spaces.
|
|
187
|
+
* When you set it to `full`, the Editor keeps all whitespace.
|
|
183
188
|
*
|
|
184
|
-
*
|
|
189
|
+
* @default `'full'`
|
|
185
190
|
*/
|
|
186
191
|
preserveWhitespace?: boolean | 'full' | string;
|
|
187
192
|
/**
|
|
188
|
-
*
|
|
189
|
-
* to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-describedby).
|
|
193
|
+
* Sets the `id` of one or more elements that describe the Editor, similar
|
|
194
|
+
* to the [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-describedby).
|
|
195
|
+
*
|
|
196
|
+
* @remarks
|
|
197
|
+
* This property is related to accessibility.
|
|
190
198
|
*/
|
|
191
199
|
ariaDescribedBy?: string;
|
|
192
200
|
/**
|
|
193
|
-
*
|
|
201
|
+
* Sets the `id` of one or more elements that label the Editor.
|
|
202
|
+
*
|
|
203
|
+
* @remarks
|
|
204
|
+
* This property is related to accessibility.
|
|
194
205
|
*/
|
|
195
206
|
ariaLabelledBy?: string;
|
|
196
207
|
/**
|
|
197
|
-
*
|
|
208
|
+
* Sets the accessible label of the Editor.
|
|
209
|
+
*
|
|
210
|
+
* @remarks
|
|
211
|
+
* This property is related to accessibility.
|
|
198
212
|
*/
|
|
199
213
|
ariaLabel?: string;
|
|
200
214
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { PasteCleanupSettings as PasteSettings } from '@progress/kendo-editor-common';
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Represents the settings that you pass to the `pasteCleanup` function ([see example](slug:paste_editor)).
|
|
11
11
|
*/
|
|
12
12
|
export interface PasteCleanupSettings extends PasteSettings {
|
|
13
13
|
}
|
|
@@ -12,31 +12,34 @@ import { PDFExportProps } from '@progress/kendo-vue-pdf';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare namespace EditorToolsSettings {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Represents the name of an Editor command.
|
|
16
16
|
*/
|
|
17
17
|
type Command = 'Bold' | 'Italic' | 'Underline' | 'Strikethrough' | 'Subscript' | 'Superscript' | 'Undo' | 'Redo' | 'Link' | 'Unlink' | 'InsertImage' | 'InsertFile' | 'AlignLeft' | 'AlignCenter' | 'AlignRight' | 'AlignJustify' | 'AlignRemove' | 'OrderedList' | 'UnorderedList' | 'Indent' | 'Outdent' | 'SetContent' | 'FontSize' | 'FontName' | 'ForeColor' | 'BackColor' | 'FormatBlock' | 'InsertTable' | 'AddRowBefore' | 'AddRowAfter' | 'AddColumnBefore' | 'AddColumnAfter' | 'DeleteRow' | 'DeleteColumn' | 'DeleteTable' | 'MergeCells' | 'SplitCell' | 'CleanFormatting' | 'Custom';
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Represents the settings of a toolbar tool.
|
|
20
20
|
*/
|
|
21
21
|
interface ToolSettings {
|
|
22
22
|
/**
|
|
23
|
-
* The props
|
|
23
|
+
* The props that the tool passes to its Button component.
|
|
24
24
|
*/
|
|
25
25
|
props: ButtonProps;
|
|
26
26
|
/**
|
|
27
|
-
* The keys of the messages that
|
|
27
|
+
* The keys of the messages that the tool uses.
|
|
28
28
|
*/
|
|
29
29
|
messages: {
|
|
30
30
|
[key: string]: string;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
|
-
* The name of the command that
|
|
33
|
+
* The name of the command that the tool uses.
|
|
34
34
|
*/
|
|
35
35
|
commandName?: Command;
|
|
36
|
+
/**
|
|
37
|
+
* The command function that the tool runs.
|
|
38
|
+
*/
|
|
36
39
|
command?: any;
|
|
37
40
|
}
|
|
38
41
|
/**
|
|
39
|
-
*
|
|
42
|
+
* Represents an action of the Align tool.
|
|
40
43
|
*/
|
|
41
44
|
interface AlignAction {
|
|
42
45
|
/**
|
|
@@ -44,7 +47,7 @@ export declare namespace EditorToolsSettings {
|
|
|
44
47
|
*/
|
|
45
48
|
node: string;
|
|
46
49
|
/**
|
|
47
|
-
* The styles that
|
|
50
|
+
* The styles that the tool applies to the target node.
|
|
48
51
|
*/
|
|
49
52
|
style: Array<{
|
|
50
53
|
name: string;
|
|
@@ -56,16 +59,16 @@ export declare namespace EditorToolsSettings {
|
|
|
56
59
|
*/
|
|
57
60
|
interface AlignSettings extends ToolSettings {
|
|
58
61
|
/**
|
|
59
|
-
*
|
|
62
|
+
* The `AlignAction` objects that define the behavior of the Align tool.
|
|
60
63
|
*/
|
|
61
64
|
actions: Array<AlignAction>;
|
|
62
65
|
}
|
|
63
66
|
/**
|
|
64
|
-
*
|
|
67
|
+
* Represents the settings of the Style tool. The Style tool renders a DropDownList.
|
|
65
68
|
*/
|
|
66
69
|
interface StyleDropDownListSettings {
|
|
67
70
|
/**
|
|
68
|
-
* The name of the style
|
|
71
|
+
* The name of the style that the Style tool adds or removes.
|
|
69
72
|
*/
|
|
70
73
|
style: string;
|
|
71
74
|
/**
|
|
@@ -85,12 +88,12 @@ export declare namespace EditorToolsSettings {
|
|
|
85
88
|
style?: {};
|
|
86
89
|
}>;
|
|
87
90
|
/**
|
|
88
|
-
* The name of the command that
|
|
91
|
+
* The name of the command that the Style tool uses.
|
|
89
92
|
*/
|
|
90
93
|
commandName?: Command;
|
|
91
94
|
}
|
|
92
95
|
/**
|
|
93
|
-
*
|
|
96
|
+
* Represents the settings of the FormatBlock tool. The FormatBlock tool renders a DropDownList.
|
|
94
97
|
*/
|
|
95
98
|
interface FormatBlockDropDownListSettings {
|
|
96
99
|
/**
|
|
@@ -110,24 +113,24 @@ export declare namespace EditorToolsSettings {
|
|
|
110
113
|
style?: {};
|
|
111
114
|
}>;
|
|
112
115
|
/**
|
|
113
|
-
* The name of the command that
|
|
116
|
+
* The name of the command that the FormatBlock tool uses.
|
|
114
117
|
*/
|
|
115
118
|
commandName?: Command;
|
|
116
119
|
}
|
|
117
120
|
/**
|
|
118
|
-
*
|
|
121
|
+
* Represents the options for inline formatting.
|
|
119
122
|
*/
|
|
120
123
|
interface InlineFormatOptions {
|
|
121
124
|
/**
|
|
122
|
-
* The mark
|
|
125
|
+
* The mark that the tool applies or removes.
|
|
123
126
|
*/
|
|
124
127
|
mark: string;
|
|
125
128
|
/**
|
|
126
|
-
* The additional marks
|
|
129
|
+
* The additional marks that the tool removes.
|
|
127
130
|
*/
|
|
128
131
|
altMarks?: Array<string>;
|
|
129
132
|
/**
|
|
130
|
-
* An object
|
|
133
|
+
* An object that holds the style that the tool removes.
|
|
131
134
|
*/
|
|
132
135
|
altStyle?: {
|
|
133
136
|
/**
|
|
@@ -135,55 +138,76 @@ export declare namespace EditorToolsSettings {
|
|
|
135
138
|
*/
|
|
136
139
|
name: string;
|
|
137
140
|
/**
|
|
138
|
-
* The regular expression
|
|
141
|
+
* The regular expression that the tool matches against the value of the style.
|
|
139
142
|
*/
|
|
140
143
|
value: RegExp;
|
|
141
144
|
};
|
|
142
145
|
}
|
|
143
146
|
/**
|
|
144
|
-
*
|
|
147
|
+
* Represents the settings of a tool that applies inline formatting.
|
|
145
148
|
*/
|
|
146
149
|
interface InlineFormatSettings extends ToolSettings, InlineFormatOptions {
|
|
147
150
|
}
|
|
148
151
|
/**
|
|
149
|
-
*
|
|
152
|
+
* Represents the settings of the ForeColor and BackColor tools.
|
|
150
153
|
*/
|
|
151
154
|
interface ApplyColorSettings {
|
|
152
155
|
/**
|
|
153
|
-
* The
|
|
156
|
+
* The style that the tool applies, `color` or `background-color`.
|
|
154
157
|
*/
|
|
155
158
|
color: string;
|
|
156
159
|
/**
|
|
157
|
-
* The props of the underlying [Kendo UI for Vue ColorPicker component](
|
|
160
|
+
* The props of the underlying [Kendo UI for Vue ColorPicker component](slug:overview_colorpicker).
|
|
158
161
|
*/
|
|
159
162
|
colorPickerProps: any;
|
|
160
163
|
/**
|
|
161
|
-
* The name of the
|
|
164
|
+
* The name of the command that the tool applies.
|
|
162
165
|
*/
|
|
163
166
|
commandName: string;
|
|
164
167
|
/**
|
|
165
|
-
* The dir of the
|
|
168
|
+
* The `dir` HTML attribute of the ColorPicker.
|
|
166
169
|
*/
|
|
167
170
|
dir?: String;
|
|
168
171
|
/**
|
|
169
|
-
* The
|
|
172
|
+
* The accessible name of the ColorPicker.
|
|
173
|
+
*
|
|
174
|
+
* @remarks
|
|
175
|
+
* This property is related to accessibility.
|
|
170
176
|
*/
|
|
171
177
|
ariaLabel?: String;
|
|
172
178
|
}
|
|
173
179
|
/**
|
|
174
|
-
*
|
|
180
|
+
* Represents an action of the Indent and Outdent tools.
|
|
175
181
|
*/
|
|
176
182
|
interface IndentAction {
|
|
183
|
+
/**
|
|
184
|
+
* The name of the target node.
|
|
185
|
+
*/
|
|
177
186
|
node: string;
|
|
187
|
+
/**
|
|
188
|
+
* The style that the tool changes, for example, `margin-left`.
|
|
189
|
+
*/
|
|
178
190
|
style: string;
|
|
191
|
+
/**
|
|
192
|
+
* The style that the tool changes in right-to-left (RTL) mode.
|
|
193
|
+
*/
|
|
179
194
|
rtlStyle: string;
|
|
195
|
+
/**
|
|
196
|
+
* The amount by which the tool changes the indentation.
|
|
197
|
+
*/
|
|
180
198
|
step: number;
|
|
199
|
+
/**
|
|
200
|
+
* The unit of the `step` value, for example, `em`.
|
|
201
|
+
*/
|
|
181
202
|
unit: string;
|
|
182
203
|
}
|
|
183
204
|
/**
|
|
184
|
-
*
|
|
205
|
+
* Represents the settings of a tool that applies indentation.
|
|
185
206
|
*/
|
|
186
207
|
interface IndentationSettings extends ToolSettings {
|
|
208
|
+
/**
|
|
209
|
+
* The `IndentAction` objects that define the behavior of the tool.
|
|
210
|
+
*/
|
|
187
211
|
actions: Array<IndentAction>;
|
|
188
212
|
/**
|
|
189
213
|
* The list node types of the Indent and Outdent tools.
|
|
@@ -198,13 +222,23 @@ export declare namespace EditorToolsSettings {
|
|
|
198
222
|
* The settings of the Link tool or dialog.
|
|
199
223
|
*/
|
|
200
224
|
interface LinkSettings extends ToolSettings {
|
|
225
|
+
/**
|
|
226
|
+
* The name of the link mark.
|
|
227
|
+
*/
|
|
201
228
|
mark: string;
|
|
229
|
+
/**
|
|
230
|
+
* Sets whether the dialog shows the option to open the link in a new window.
|
|
231
|
+
* To hide the option, set it to `false`.
|
|
232
|
+
*/
|
|
202
233
|
linkTarget?: boolean;
|
|
203
234
|
}
|
|
204
235
|
/**
|
|
205
236
|
* The settings of the Unlink tool.
|
|
206
237
|
*/
|
|
207
238
|
interface UnlinkSettings extends ToolSettings {
|
|
239
|
+
/**
|
|
240
|
+
* The name of the link mark that the tool removes.
|
|
241
|
+
*/
|
|
208
242
|
mark: string;
|
|
209
243
|
}
|
|
210
244
|
/**
|
|
@@ -213,7 +247,7 @@ export declare namespace EditorToolsSettings {
|
|
|
213
247
|
interface InsertFileSettings extends LinkSettings {
|
|
214
248
|
}
|
|
215
249
|
/**
|
|
216
|
-
*
|
|
250
|
+
* Represents the settings of a tool that toggles lists.
|
|
217
251
|
*/
|
|
218
252
|
interface ListSettings extends ToolSettings {
|
|
219
253
|
/**
|
|
@@ -221,7 +255,7 @@ export declare namespace EditorToolsSettings {
|
|
|
221
255
|
*/
|
|
222
256
|
listType: string;
|
|
223
257
|
/**
|
|
224
|
-
* The types of the list nodes that
|
|
258
|
+
* The types of the list nodes that the tool uses.
|
|
225
259
|
*/
|
|
226
260
|
types: {
|
|
227
261
|
orderedList: string;
|
|
@@ -303,6 +337,9 @@ export declare namespace EditorToolsSettings {
|
|
|
303
337
|
* The settings of the InsertImage tool or dialog.
|
|
304
338
|
*/
|
|
305
339
|
interface ImageSettings extends ToolSettings {
|
|
340
|
+
/**
|
|
341
|
+
* The name of the image node.
|
|
342
|
+
*/
|
|
306
343
|
node: string;
|
|
307
344
|
}
|
|
308
345
|
/**
|
|
@@ -344,7 +381,7 @@ export declare namespace EditorToolsSettings {
|
|
|
344
381
|
*/
|
|
345
382
|
const link: LinkSettings;
|
|
346
383
|
/**
|
|
347
|
-
* The object of the
|
|
384
|
+
* The object of the InsertFile tool settings.
|
|
348
385
|
*/
|
|
349
386
|
const insertFile: InsertFileSettings;
|
|
350
387
|
/**
|
|
@@ -392,21 +429,23 @@ export declare namespace EditorToolsSettings {
|
|
|
392
429
|
*/
|
|
393
430
|
const print: PrintSettings;
|
|
394
431
|
/**
|
|
395
|
-
* The object of the
|
|
432
|
+
* The object of the SelectAll tool settings.
|
|
396
433
|
*/
|
|
397
434
|
const selectAll: SelectAllSettings;
|
|
398
435
|
/**
|
|
399
|
-
* The object of the
|
|
436
|
+
* The object of the Pdf tool settings.
|
|
400
437
|
*/
|
|
401
438
|
const pdf: PdfSettings;
|
|
402
439
|
/**
|
|
403
|
-
* The PDF export options.
|
|
440
|
+
* The default PDF export options of the Pdf tool.
|
|
404
441
|
*
|
|
442
|
+
* ```js
|
|
405
443
|
* const savePdfOptions = {
|
|
406
444
|
* fileName: 'editor.pdf',
|
|
407
445
|
* paperSize: 'A4',
|
|
408
446
|
* margin: '1cm'
|
|
409
447
|
* };
|
|
448
|
+
* ```
|
|
410
449
|
*/
|
|
411
450
|
const savePdfOptions: PDFExportProps;
|
|
412
451
|
/**
|