@progress/kendo-vue-editor 2.7.2-dev.202201051440 → 2.8.0-dev.202201111325

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.
Files changed (120) hide show
  1. package/dist/cdn/js/kendo-vue-editor.js +1 -0
  2. package/dist/es/Editor.d.ts +49 -131
  3. package/dist/es/Editor.js +66 -37
  4. package/dist/es/EditorProps.d.ts +11 -5
  5. package/dist/es/additionalTypes.ts +7 -1
  6. package/dist/es/config/toolsSettings.js +2 -2
  7. package/dist/es/dialogs/FindReplace.d.ts +5 -6
  8. package/dist/es/dialogs/FindReplace.js +93 -51
  9. package/dist/es/dialogs/insertImage.d.ts +5 -6
  10. package/dist/es/dialogs/insertImage.js +8 -8
  11. package/dist/es/dialogs/insertLink.d.ts +5 -6
  12. package/dist/es/dialogs/insertLink.js +5 -5
  13. package/dist/es/dialogs/viewHtml.d.ts +5 -6
  14. package/dist/es/dialogs/viewHtml.js +3 -3
  15. package/dist/es/package-metadata.js +1 -1
  16. package/dist/es/tools/align.d.ts +36 -0
  17. package/dist/es/tools/{Align.js → align.js} +3 -3
  18. package/dist/es/tools/applyColor.d.ts +5 -6
  19. package/dist/es/tools/applyColor.js +3 -3
  20. package/dist/es/tools/cleanFormatting.d.ts +5 -6
  21. package/dist/es/tools/cleanFormatting.js +3 -3
  22. package/dist/es/tools/findReplace.d.ts +5 -6
  23. package/dist/es/tools/findReplace.js +3 -3
  24. package/dist/es/tools/fontStyle.d.ts +5 -6
  25. package/dist/es/tools/fontStyle.js +12 -7
  26. package/dist/es/tools/formatBlock.d.ts +5 -6
  27. package/dist/es/tools/formatBlock.js +11 -6
  28. package/dist/es/tools/indent.d.ts +41 -0
  29. package/dist/es/tools/{Indent.js → indent.js} +3 -3
  30. package/dist/{npm/tools/InlineFormat.d.ts → es/tools/inlineFormat.d.ts} +5 -6
  31. package/dist/es/tools/{InlineFormat.js → inlineFormat.js} +3 -3
  32. package/dist/es/tools/insertImage.d.ts +5 -6
  33. package/dist/es/tools/insertImage.js +3 -3
  34. package/dist/es/tools/insertLink.d.ts +5 -6
  35. package/dist/es/tools/insertLink.js +3 -3
  36. package/dist/es/tools/insertTable/popup.d.ts +5 -6
  37. package/dist/es/tools/insertTable/popup.js +3 -3
  38. package/dist/es/tools/insertTable/popupGrid.d.ts +5 -6
  39. package/dist/es/tools/insertTable/popupGrid.js +3 -3
  40. package/dist/es/tools/insertTable/tool.d.ts +5 -6
  41. package/dist/es/tools/insertTable/tool.js +3 -3
  42. package/dist/es/tools/lists.d.ts +5 -6
  43. package/dist/es/tools/lists.js +3 -3
  44. package/dist/es/tools/outdent.d.ts +41 -0
  45. package/dist/es/tools/{Outdent.js → outdent.js} +3 -3
  46. package/dist/es/tools/pdf.d.ts +5 -6
  47. package/dist/es/tools/pdf.js +3 -3
  48. package/dist/es/tools/print.d.ts +5 -6
  49. package/dist/es/tools/print.js +3 -3
  50. package/dist/es/tools/proseMirrorTool.d.ts +5 -6
  51. package/dist/es/tools/proseMirrorTool.js +3 -3
  52. package/dist/es/tools/selectAll.d.ts +5 -6
  53. package/dist/es/tools/selectAll.js +3 -3
  54. package/dist/es/tools/unlink.d.ts +5 -6
  55. package/dist/es/tools/unlink.js +3 -3
  56. package/dist/es/tools/viewHtml.d.ts +5 -6
  57. package/dist/es/tools/viewHtml.js +3 -3
  58. package/dist/npm/Editor.d.ts +49 -131
  59. package/dist/npm/Editor.js +81 -52
  60. package/dist/npm/EditorProps.d.ts +11 -5
  61. package/dist/npm/additionalTypes.ts +7 -1
  62. package/dist/npm/config/toolsSettings.js +1 -1
  63. package/dist/npm/dialogs/FindReplace.d.ts +5 -6
  64. package/dist/npm/dialogs/FindReplace.js +96 -53
  65. package/dist/npm/dialogs/insertImage.d.ts +5 -6
  66. package/dist/npm/dialogs/insertImage.js +10 -10
  67. package/dist/npm/dialogs/insertLink.d.ts +5 -6
  68. package/dist/npm/dialogs/insertLink.js +7 -7
  69. package/dist/npm/dialogs/viewHtml.d.ts +5 -6
  70. package/dist/npm/dialogs/viewHtml.js +5 -5
  71. package/dist/npm/package-metadata.js +1 -1
  72. package/dist/npm/tools/align.d.ts +36 -0
  73. package/dist/npm/tools/{Align.js → align.js} +5 -5
  74. package/dist/npm/tools/applyColor.d.ts +5 -6
  75. package/dist/npm/tools/applyColor.js +5 -5
  76. package/dist/npm/tools/cleanFormatting.d.ts +5 -6
  77. package/dist/npm/tools/cleanFormatting.js +5 -5
  78. package/dist/npm/tools/findReplace.d.ts +5 -6
  79. package/dist/npm/tools/findReplace.js +5 -5
  80. package/dist/npm/tools/fontStyle.d.ts +5 -6
  81. package/dist/npm/tools/fontStyle.js +14 -9
  82. package/dist/npm/tools/formatBlock.d.ts +5 -6
  83. package/dist/npm/tools/formatBlock.js +13 -8
  84. package/dist/npm/tools/indent.d.ts +41 -0
  85. package/dist/npm/tools/{Indent.js → indent.js} +5 -5
  86. package/dist/{es/tools/InlineFormat.d.ts → npm/tools/inlineFormat.d.ts} +5 -6
  87. package/dist/npm/tools/{InlineFormat.js → inlineFormat.js} +5 -5
  88. package/dist/npm/tools/insertImage.d.ts +5 -6
  89. package/dist/npm/tools/insertImage.js +5 -5
  90. package/dist/npm/tools/insertLink.d.ts +5 -6
  91. package/dist/npm/tools/insertLink.js +5 -5
  92. package/dist/npm/tools/insertTable/popup.d.ts +5 -6
  93. package/dist/npm/tools/insertTable/popup.js +5 -5
  94. package/dist/npm/tools/insertTable/popupGrid.d.ts +5 -6
  95. package/dist/npm/tools/insertTable/popupGrid.js +5 -5
  96. package/dist/npm/tools/insertTable/tool.d.ts +5 -6
  97. package/dist/npm/tools/insertTable/tool.js +5 -5
  98. package/dist/npm/tools/lists.d.ts +5 -6
  99. package/dist/npm/tools/lists.js +5 -5
  100. package/dist/npm/tools/outdent.d.ts +41 -0
  101. package/dist/npm/tools/{Outdent.js → outdent.js} +5 -5
  102. package/dist/npm/tools/pdf.d.ts +5 -6
  103. package/dist/npm/tools/pdf.js +5 -5
  104. package/dist/npm/tools/print.d.ts +5 -6
  105. package/dist/npm/tools/print.js +5 -5
  106. package/dist/npm/tools/proseMirrorTool.d.ts +5 -6
  107. package/dist/npm/tools/proseMirrorTool.js +5 -5
  108. package/dist/npm/tools/selectAll.d.ts +5 -6
  109. package/dist/npm/tools/selectAll.js +5 -5
  110. package/dist/npm/tools/unlink.d.ts +5 -6
  111. package/dist/npm/tools/unlink.js +5 -5
  112. package/dist/npm/tools/viewHtml.d.ts +5 -6
  113. package/dist/npm/tools/viewHtml.js +5 -5
  114. package/package.json +12 -12
  115. package/dist/es/tools/Align.d.ts +0 -37
  116. package/dist/es/tools/Indent.d.ts +0 -42
  117. package/dist/es/tools/Outdent.d.ts +0 -42
  118. package/dist/npm/tools/Align.d.ts +0 -37
  119. package/dist/npm/tools/Indent.d.ts +0 -42
  120. package/dist/npm/tools/Outdent.d.ts +0 -42
@@ -1,6 +1,4 @@
1
- import * as Vue from 'vue';
2
- import { DefineComponent } from './additionalTypes';
3
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from './additionalTypes';
4
2
  declare type DefaultData<V> = object | ((this: V) => {});
5
3
  declare type DefaultMethods<V> = {
6
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -10,249 +8,167 @@ import { EditorToolsSettings } from './config/toolsSettings';
10
8
  import { EditorProps } from './EditorProps';
11
9
  export declare const allTools: {
12
10
  Bold: {
13
- comp: Vue.ComponentOptions<import("./tools/InlineFormat").InlineFormatAll, object | ((this: import("./tools/InlineFormat").InlineFormatData) => {}), {
14
- [key: string]: (this: import("./tools/InlineFormat").InlineFormatAll, ...args: any[]) => any;
15
- }, import("./tools/InlineFormat").InlineFormatComputed, RecordPropsDefinition<import("./tools/InlineFormat").InlineFormatToolProps>, Record<string, any>>;
11
+ comp: any;
16
12
  props: EditorToolsSettings.InlineFormatSettings;
17
13
  };
18
14
  Italic: {
19
- comp: Vue.ComponentOptions<import("./tools/InlineFormat").InlineFormatAll, object | ((this: import("./tools/InlineFormat").InlineFormatData) => {}), {
20
- [key: string]: (this: import("./tools/InlineFormat").InlineFormatAll, ...args: any[]) => any;
21
- }, import("./tools/InlineFormat").InlineFormatComputed, RecordPropsDefinition<import("./tools/InlineFormat").InlineFormatToolProps>, Record<string, any>>;
15
+ comp: any;
22
16
  props: EditorToolsSettings.InlineFormatSettings;
23
17
  };
24
18
  Underline: {
25
- comp: Vue.ComponentOptions<import("./tools/InlineFormat").InlineFormatAll, object | ((this: import("./tools/InlineFormat").InlineFormatData) => {}), {
26
- [key: string]: (this: import("./tools/InlineFormat").InlineFormatAll, ...args: any[]) => any;
27
- }, import("./tools/InlineFormat").InlineFormatComputed, RecordPropsDefinition<import("./tools/InlineFormat").InlineFormatToolProps>, Record<string, any>>;
19
+ comp: any;
28
20
  props: EditorToolsSettings.InlineFormatSettings;
29
21
  };
30
22
  Strikethrough: {
31
- comp: Vue.ComponentOptions<import("./tools/InlineFormat").InlineFormatAll, object | ((this: import("./tools/InlineFormat").InlineFormatData) => {}), {
32
- [key: string]: (this: import("./tools/InlineFormat").InlineFormatAll, ...args: any[]) => any;
33
- }, import("./tools/InlineFormat").InlineFormatComputed, RecordPropsDefinition<import("./tools/InlineFormat").InlineFormatToolProps>, Record<string, any>>;
23
+ comp: any;
34
24
  props: EditorToolsSettings.InlineFormatSettings;
35
25
  };
36
26
  Subscript: {
37
- comp: Vue.ComponentOptions<import("./tools/InlineFormat").InlineFormatAll, object | ((this: import("./tools/InlineFormat").InlineFormatData) => {}), {
38
- [key: string]: (this: import("./tools/InlineFormat").InlineFormatAll, ...args: any[]) => any;
39
- }, import("./tools/InlineFormat").InlineFormatComputed, RecordPropsDefinition<import("./tools/InlineFormat").InlineFormatToolProps>, Record<string, any>>;
27
+ comp: any;
40
28
  props: EditorToolsSettings.InlineFormatSettings;
41
29
  };
42
30
  Superscript: {
43
- comp: Vue.ComponentOptions<import("./tools/InlineFormat").InlineFormatAll, object | ((this: import("./tools/InlineFormat").InlineFormatData) => {}), {
44
- [key: string]: (this: import("./tools/InlineFormat").InlineFormatAll, ...args: any[]) => any;
45
- }, import("./tools/InlineFormat").InlineFormatComputed, RecordPropsDefinition<import("./tools/InlineFormat").InlineFormatToolProps>, Record<string, any>>;
31
+ comp: any;
46
32
  props: EditorToolsSettings.InlineFormatSettings;
47
33
  };
48
34
  AlignLeft: {
49
- comp: Vue.ComponentOptions<import("./tools/Align").AlignAll, object | ((this: import("./tools/Align").AlignData) => {}), {
50
- [key: string]: (this: import("./tools/Align").AlignAll, ...args: any[]) => any;
51
- }, import("./tools/Align").AlignComputed, RecordPropsDefinition<import("./main").EditorTools.AlignToolProps>, Record<string, any>>;
35
+ comp: any;
52
36
  props: EditorToolsSettings.AlignSettings;
53
37
  };
54
38
  AlignCenter: {
55
- comp: Vue.ComponentOptions<import("./tools/Align").AlignAll, object | ((this: import("./tools/Align").AlignData) => {}), {
56
- [key: string]: (this: import("./tools/Align").AlignAll, ...args: any[]) => any;
57
- }, import("./tools/Align").AlignComputed, RecordPropsDefinition<import("./main").EditorTools.AlignToolProps>, Record<string, any>>;
39
+ comp: any;
58
40
  props: EditorToolsSettings.AlignSettings;
59
41
  };
60
42
  AlignRight: {
61
- comp: Vue.ComponentOptions<import("./tools/Align").AlignAll, object | ((this: import("./tools/Align").AlignData) => {}), {
62
- [key: string]: (this: import("./tools/Align").AlignAll, ...args: any[]) => any;
63
- }, import("./tools/Align").AlignComputed, RecordPropsDefinition<import("./main").EditorTools.AlignToolProps>, Record<string, any>>;
43
+ comp: any;
64
44
  props: EditorToolsSettings.AlignSettings;
65
45
  };
66
46
  AlignJustify: {
67
- comp: Vue.ComponentOptions<import("./tools/Align").AlignAll, object | ((this: import("./tools/Align").AlignData) => {}), {
68
- [key: string]: (this: import("./tools/Align").AlignAll, ...args: any[]) => any;
69
- }, import("./tools/Align").AlignComputed, RecordPropsDefinition<import("./main").EditorTools.AlignToolProps>, Record<string, any>>;
47
+ comp: any;
70
48
  props: EditorToolsSettings.AlignSettings;
71
49
  };
72
50
  Indent: {
73
- comp: Vue.ComponentOptions<import("./tools/Indent").IndentAll, object | ((this: import("./tools/Indent").IndentData) => {}), {
74
- [key: string]: (this: import("./tools/Indent").IndentAll, ...args: any[]) => any;
75
- }, import("./tools/Indent").IndentComputed, RecordPropsDefinition<import("./tools/Indent").IndentProps>, Record<string, any>>;
51
+ comp: any;
76
52
  props: EditorToolsSettings.IndentationSettings;
77
53
  };
78
54
  Outdent: {
79
- comp: Vue.ComponentOptions<import("./tools/Outdent").OutdentAll, object | ((this: import("./tools/Outdent").OutdentData) => {}), {
80
- [key: string]: (this: import("./tools/Outdent").OutdentAll, ...args: any[]) => any;
81
- }, import("./tools/Outdent").OutdentComputed, RecordPropsDefinition<import("./tools/Outdent").OutdentProps>, Record<string, any>>;
55
+ comp: any;
82
56
  props: EditorToolsSettings.IndentationSettings;
83
57
  };
84
58
  OrderedList: {
85
- comp: Vue.ComponentOptions<import("./tools/lists").ListAll, object | ((this: import("./tools/lists").ListData) => {}), {
86
- [key: string]: (this: import("./tools/lists").ListAll, ...args: any[]) => any;
87
- }, import("./tools/lists").ListComputed, RecordPropsDefinition<import("./tools/lists").ListToolProps>, Record<string, any>>;
59
+ comp: any;
88
60
  props: EditorToolsSettings.ListSettings;
89
61
  };
90
62
  UnorderedList: {
91
- comp: Vue.ComponentOptions<import("./tools/lists").ListAll, object | ((this: import("./tools/lists").ListData) => {}), {
92
- [key: string]: (this: import("./tools/lists").ListAll, ...args: any[]) => any;
93
- }, import("./tools/lists").ListComputed, RecordPropsDefinition<import("./tools/lists").ListToolProps>, Record<string, any>>;
63
+ comp: any;
94
64
  props: EditorToolsSettings.ListSettings;
95
65
  };
96
66
  FontSize: {
97
- comp: Vue.ComponentOptions<import("./tools/fontStyle").FontNameAll, object | ((this: import("./tools/fontStyle").FontNameData) => {}), {
98
- [key: string]: (this: import("./tools/fontStyle").FontNameAll, ...args: any[]) => any;
99
- }, import("./tools/fontStyle").FontNameComputed, RecordPropsDefinition<import("./tools/fontStyle").FontNameProps>, Record<string, any>>;
67
+ comp: any;
100
68
  props: EditorToolsSettings.StyleDropDownListSettings;
101
69
  };
102
70
  FontName: {
103
- comp: Vue.ComponentOptions<import("./tools/fontStyle").FontNameAll, object | ((this: import("./tools/fontStyle").FontNameData) => {}), {
104
- [key: string]: (this: import("./tools/fontStyle").FontNameAll, ...args: any[]) => any;
105
- }, import("./tools/fontStyle").FontNameComputed, RecordPropsDefinition<import("./tools/fontStyle").FontNameProps>, Record<string, any>>;
71
+ comp: any;
106
72
  props: EditorToolsSettings.StyleDropDownListSettings;
107
73
  };
108
74
  FormatBlock: {
109
- comp: Vue.ComponentOptions<import("./tools/formatBlock").FormatBlockAll, object | ((this: import("./tools/formatBlock").FormatBlockData) => {}), {
110
- [key: string]: (this: import("./tools/formatBlock").FormatBlockAll, ...args: any[]) => any;
111
- }, import("./tools/formatBlock").FormatBlockComputed, RecordPropsDefinition<import("./tools/formatBlock").FormatBlockProps>, Record<string, any>>;
75
+ comp: any;
112
76
  props: EditorToolsSettings.FormatBlockDropDownListSettings;
113
77
  };
114
78
  Undo: {
115
- comp: Vue.ComponentOptions<import("./tools/proseMirrorTool").ProseMirrorAll, object | ((this: import("./tools/proseMirrorTool").ProseMirrorData) => {}), {
116
- [key: string]: (this: import("./tools/proseMirrorTool").ProseMirrorAll, ...args: any[]) => any;
117
- }, import("./tools/proseMirrorTool").ProseMirrorComputed, RecordPropsDefinition<import("./tools/ToolProps").ToolProps>, Record<string, any>>;
79
+ comp: any;
118
80
  props: EditorToolsSettings.ToolSettings;
119
81
  };
120
82
  Redo: {
121
- comp: Vue.ComponentOptions<import("./tools/proseMirrorTool").ProseMirrorAll, object | ((this: import("./tools/proseMirrorTool").ProseMirrorData) => {}), {
122
- [key: string]: (this: import("./tools/proseMirrorTool").ProseMirrorAll, ...args: any[]) => any;
123
- }, import("./tools/proseMirrorTool").ProseMirrorComputed, RecordPropsDefinition<import("./tools/ToolProps").ToolProps>, Record<string, any>>;
83
+ comp: any;
124
84
  props: EditorToolsSettings.ToolSettings;
125
85
  };
126
86
  Link: {
127
- comp: Vue.ComponentOptions<import("./tools/insertLink").LinkToolAll, object | ((this: import("./tools/insertLink").LinkToolData) => {}), {
128
- [key: string]: (this: import("./tools/insertLink").LinkToolAll, ...args: any[]) => any;
129
- }, import("./tools/insertLink").LinkToolComputed, RecordPropsDefinition<import("./tools/insertLink").LinkProps>, Record<string, any>>;
87
+ comp: any;
130
88
  props: EditorToolsSettings.LinkSettings;
131
89
  };
132
90
  Unlink: {
133
- comp: Vue.ComponentOptions<import("./tools/unlink").UnlinkAll, object | ((this: import("./tools/unlink").UnlinkData) => {}), {
134
- [key: string]: (this: import("./tools/unlink").UnlinkAll, ...args: any[]) => any;
135
- }, import("./tools/unlink").UnlinkComputed, RecordPropsDefinition<import("./tools/unlink").UnlinkProps>, Record<string, any>>;
91
+ comp: any;
136
92
  props: EditorToolsSettings.UnlinkSettings;
137
93
  };
138
94
  InsertImage: {
139
- comp: Vue.ComponentOptions<import("./tools/insertImage").InsertImageAll, object | ((this: import("./tools/insertImage").InsertImageData) => {}), {
140
- [key: string]: (this: import("./tools/insertImage").InsertImageAll, ...args: any[]) => any;
141
- }, import("./tools/insertImage").InsertImageComputed, RecordPropsDefinition<import("./tools/insertImage").InsertImageProps>, Record<string, any>>;
95
+ comp: any;
142
96
  props: EditorToolsSettings.ImageSettings;
143
97
  };
144
98
  ViewHtml: {
145
- comp: Vue.ComponentOptions<import("./tools/viewHtml").ViewHtmlAll, object | ((this: import("./tools/viewHtml").ViewHtmlData) => {}), {
146
- [key: string]: (this: import("./tools/viewHtml").ViewHtmlAll, ...args: any[]) => any;
147
- }, import("./tools/viewHtml").ViewHtmlComputed, RecordPropsDefinition<import("./tools/viewHtml").ViewHtmlProps>, Record<string, any>>;
99
+ comp: any;
148
100
  props: EditorToolsSettings.ViewHtmlSettings;
149
101
  };
150
102
  CleanFormatting: {
151
- comp: Vue.ComponentOptions<import("./tools/cleanFormatting").CleanFormattingAll, object | ((this: import("./tools/cleanFormatting").CleanFormattingData) => {}), {
152
- [key: string]: (this: import("./tools/cleanFormatting").CleanFormattingAll, ...args: any[]) => any;
153
- }, import("./tools/cleanFormatting").CleanFormattingComputed, RecordPropsDefinition<import("./tools/cleanFormatting").CleanFormattingProps>, Record<string, any>>;
103
+ comp: any;
154
104
  props: EditorToolsSettings.CleanFormattingSettings;
155
105
  };
156
106
  SelectAll: {
157
- comp: Vue.ComponentOptions<import("./tools/selectAll").SelectAllAll, object | ((this: import("./tools/selectAll").SelectAllData) => {}), {
158
- [key: string]: (this: import("./tools/selectAll").SelectAllAll, ...args: any[]) => any;
159
- }, import("./tools/selectAll").SelectAllComputed, RecordPropsDefinition<import("./tools/selectAll").SelectAllProps>, Record<string, any>>;
107
+ comp: any;
160
108
  props: EditorToolsSettings.SelectAllSettings;
161
109
  };
162
110
  InsertTable: {
163
- comp: Vue.ComponentOptions<import("./tools/insertTable/tool").InsertTableAll, object | ((this: import("./tools/insertTable/tool").InsertTableData) => {}), {
164
- [key: string]: (this: import("./tools/insertTable/tool").InsertTableAll, ...args: any[]) => any;
165
- }, import("./tools/insertTable/tool").InsertTableComputed, RecordPropsDefinition<import("./tools/insertTable/tool").InsertTableProps>, Record<string, any>>;
111
+ comp: any;
166
112
  props: EditorToolsSettings.InsertTableSettings;
167
113
  };
168
114
  MergeCells: {
169
- comp: Vue.ComponentOptions<import("./tools/proseMirrorTool").ProseMirrorAll, object | ((this: import("./tools/proseMirrorTool").ProseMirrorData) => {}), {
170
- [key: string]: (this: import("./tools/proseMirrorTool").ProseMirrorAll, ...args: any[]) => any;
171
- }, import("./tools/proseMirrorTool").ProseMirrorComputed, RecordPropsDefinition<import("./tools/ToolProps").ToolProps>, Record<string, any>>;
115
+ comp: any;
172
116
  props: EditorToolsSettings.MergeCellsSettings;
173
117
  };
174
118
  SplitCell: {
175
- comp: Vue.ComponentOptions<import("./tools/proseMirrorTool").ProseMirrorAll, object | ((this: import("./tools/proseMirrorTool").ProseMirrorData) => {}), {
176
- [key: string]: (this: import("./tools/proseMirrorTool").ProseMirrorAll, ...args: any[]) => any;
177
- }, import("./tools/proseMirrorTool").ProseMirrorComputed, RecordPropsDefinition<import("./tools/ToolProps").ToolProps>, Record<string, any>>;
119
+ comp: any;
178
120
  props: EditorToolsSettings.SplitCellSettings;
179
121
  };
180
122
  AddRowBefore: {
181
- comp: Vue.ComponentOptions<import("./tools/proseMirrorTool").ProseMirrorAll, object | ((this: import("./tools/proseMirrorTool").ProseMirrorData) => {}), {
182
- [key: string]: (this: import("./tools/proseMirrorTool").ProseMirrorAll, ...args: any[]) => any;
183
- }, import("./tools/proseMirrorTool").ProseMirrorComputed, RecordPropsDefinition<import("./tools/ToolProps").ToolProps>, Record<string, any>>;
123
+ comp: any;
184
124
  props: EditorToolsSettings.AddRowBeforeSettings;
185
125
  };
186
126
  AddRowAfter: {
187
- comp: Vue.ComponentOptions<import("./tools/proseMirrorTool").ProseMirrorAll, object | ((this: import("./tools/proseMirrorTool").ProseMirrorData) => {}), {
188
- [key: string]: (this: import("./tools/proseMirrorTool").ProseMirrorAll, ...args: any[]) => any;
189
- }, import("./tools/proseMirrorTool").ProseMirrorComputed, RecordPropsDefinition<import("./tools/ToolProps").ToolProps>, Record<string, any>>;
127
+ comp: any;
190
128
  props: EditorToolsSettings.AddRowAfterSettings;
191
129
  };
192
130
  AddColumnBefore: {
193
- comp: Vue.ComponentOptions<import("./tools/proseMirrorTool").ProseMirrorAll, object | ((this: import("./tools/proseMirrorTool").ProseMirrorData) => {}), {
194
- [key: string]: (this: import("./tools/proseMirrorTool").ProseMirrorAll, ...args: any[]) => any;
195
- }, import("./tools/proseMirrorTool").ProseMirrorComputed, RecordPropsDefinition<import("./tools/ToolProps").ToolProps>, Record<string, any>>;
131
+ comp: any;
196
132
  props: EditorToolsSettings.AddColumnBeforeSettings;
197
133
  };
198
134
  AddColumnAfter: {
199
- comp: Vue.ComponentOptions<import("./tools/proseMirrorTool").ProseMirrorAll, object | ((this: import("./tools/proseMirrorTool").ProseMirrorData) => {}), {
200
- [key: string]: (this: import("./tools/proseMirrorTool").ProseMirrorAll, ...args: any[]) => any;
201
- }, import("./tools/proseMirrorTool").ProseMirrorComputed, RecordPropsDefinition<import("./tools/ToolProps").ToolProps>, Record<string, any>>;
135
+ comp: any;
202
136
  props: EditorToolsSettings.AddColumnAfterSettings;
203
137
  };
204
138
  DeleteRow: {
205
- comp: Vue.ComponentOptions<import("./tools/proseMirrorTool").ProseMirrorAll, object | ((this: import("./tools/proseMirrorTool").ProseMirrorData) => {}), {
206
- [key: string]: (this: import("./tools/proseMirrorTool").ProseMirrorAll, ...args: any[]) => any;
207
- }, import("./tools/proseMirrorTool").ProseMirrorComputed, RecordPropsDefinition<import("./tools/ToolProps").ToolProps>, Record<string, any>>;
139
+ comp: any;
208
140
  props: EditorToolsSettings.DeleteRowSettings;
209
141
  };
210
142
  DeleteColumn: {
211
- comp: Vue.ComponentOptions<import("./tools/proseMirrorTool").ProseMirrorAll, object | ((this: import("./tools/proseMirrorTool").ProseMirrorData) => {}), {
212
- [key: string]: (this: import("./tools/proseMirrorTool").ProseMirrorAll, ...args: any[]) => any;
213
- }, import("./tools/proseMirrorTool").ProseMirrorComputed, RecordPropsDefinition<import("./tools/ToolProps").ToolProps>, Record<string, any>>;
143
+ comp: any;
214
144
  props: EditorToolsSettings.DeleteColumnSettings;
215
145
  };
216
146
  DeleteTable: {
217
- comp: Vue.ComponentOptions<import("./tools/proseMirrorTool").ProseMirrorAll, object | ((this: import("./tools/proseMirrorTool").ProseMirrorData) => {}), {
218
- [key: string]: (this: import("./tools/proseMirrorTool").ProseMirrorAll, ...args: any[]) => any;
219
- }, import("./tools/proseMirrorTool").ProseMirrorComputed, RecordPropsDefinition<import("./tools/ToolProps").ToolProps>, Record<string, any>>;
147
+ comp: any;
220
148
  props: EditorToolsSettings.DeleteTableSettings;
221
149
  };
222
150
  Print: {
223
- comp: Vue.ComponentOptions<import("./tools/print").PrintAll, object | ((this: import("./tools/print").PrintData) => {}), {
224
- [key: string]: (this: import("./tools/print").PrintAll, ...args: any[]) => any;
225
- }, import("./tools/print").PrintComputed, RecordPropsDefinition<import("./tools/print").PrintProps>, Record<string, any>>;
151
+ comp: any;
226
152
  props: EditorToolsSettings.PrintSettings;
227
153
  };
228
154
  Pdf: {
229
- comp: Vue.ComponentOptions<import("./tools/pdf").PdfAll, object | ((this: import("./tools/pdf").PdfData) => {}), {
230
- [key: string]: (this: import("./tools/pdf").PdfAll, ...args: any[]) => any;
231
- }, import("./tools/pdf").PdfComputed, RecordPropsDefinition<import("./tools/pdf").PdfProps>, Record<string, any>>;
155
+ comp: any;
232
156
  props: EditorToolsSettings.PdfSettings;
233
157
  };
234
158
  InsertFile: {
235
- comp: Vue.ComponentOptions<import("./tools/insertLink").LinkToolAll, object | ((this: import("./tools/insertLink").LinkToolData) => {}), {
236
- [key: string]: (this: import("./tools/insertLink").LinkToolAll, ...args: any[]) => any;
237
- }, import("./tools/insertLink").LinkToolComputed, RecordPropsDefinition<import("./tools/insertLink").LinkProps>, Record<string, any>>;
159
+ comp: any;
238
160
  props: EditorToolsSettings.InsertFileSettings;
239
161
  };
240
162
  FindAndReplace: {
241
- comp: Vue.ComponentOptions<import("./tools/findReplace").FindAndReplaceAll, object | ((this: import("./tools/findReplace").FindAndReplaceData) => {}), {
242
- [key: string]: (this: import("./tools/findReplace").FindAndReplaceAll, ...args: any[]) => any;
243
- }, import("./tools/findReplace").FindAndReplaceComputed, RecordPropsDefinition<import("./tools/findReplace").FindAndReplaceProps>, Record<string, any>>;
163
+ comp: any;
244
164
  props: EditorToolsSettings.FindReplaceSettings;
245
165
  };
246
166
  ForeColor: {
247
- comp: Vue.ComponentOptions<import("./tools/applyColor").ApplyColorAll, object | ((this: import("./tools/applyColor").ApplyColorData) => {}), {
248
- [key: string]: (this: import("./tools/applyColor").ApplyColorAll, ...args: any[]) => any;
249
- }, import("./tools/applyColor").ApplyColorComputed, RecordPropsDefinition<import("./tools/applyColor").ApplyColorToolProps>, Record<string, any>>;
167
+ comp: any;
250
168
  props: EditorToolsSettings.ApplyColorSettings;
251
169
  };
252
170
  BackColor: {
253
- comp: Vue.ComponentOptions<import("./tools/applyColor").ApplyColorAll, object | ((this: import("./tools/applyColor").ApplyColorData) => {}), {
254
- [key: string]: (this: import("./tools/applyColor").ApplyColorAll, ...args: any[]) => any;
255
- }, import("./tools/applyColor").ApplyColorComputed, RecordPropsDefinition<import("./tools/applyColor").ApplyColorToolProps>, Record<string, any>>;
171
+ comp: any;
256
172
  props: EditorToolsSettings.ApplyColorSettings;
257
173
  };
258
174
  };
@@ -261,7 +177,7 @@ export declare const allTools: {
261
177
  */
262
178
  export interface EditorComponentState {
263
179
  element: HTMLElement | null;
264
- view?: EditorView;
180
+ _view?: EditorView;
265
181
  contentElement: HTMLDivElement | null;
266
182
  iframe: HTMLIFrameElement | null;
267
183
  trOnChange: Transaction | null;
@@ -284,12 +200,14 @@ export interface EditorMethods {
284
200
  * @hidden
285
201
  */
286
202
  export interface EditorData {
203
+ view?: EditorView;
204
+ linkDialog?: boolean;
287
205
  }
288
206
  /**
289
207
  * @hidden
290
208
  */
291
- export interface EditorAll extends Vue, EditorMethods, EditorData, EditorComputed, EditorComponentState {
209
+ export interface EditorAll extends Vue2type, EditorMethods, EditorData, EditorComputed, EditorComponentState {
292
210
  }
293
- declare let Editor: ComponentOptions<EditorAll, DefaultData<EditorData>, DefaultMethods<EditorAll>, EditorComputed, RecordPropsDefinition<EditorProps>>;
294
- declare const EditorVue3: DefineComponent<EditorProps, any, EditorData, EditorComputed, EditorMethods, {}, {}, {}, string, EditorProps, EditorProps, {}>;
295
- export { Editor, EditorVue3 };
211
+ declare let EditorVue2: ComponentOptions<EditorAll, DefaultData<EditorData>, DefaultMethods<EditorAll>, EditorComputed, RecordPropsDefinition<EditorProps>>;
212
+ declare const Editor: DefineComponent<EditorProps, any, EditorData, EditorComputed, EditorMethods, {}, {}, {}, string, EditorProps, EditorProps, {}>;
213
+ export { Editor, EditorVue2 };
package/dist/es/Editor.js CHANGED
@@ -49,11 +49,11 @@ var link = EditorToolsSettings.link,
49
49
  underline = EditorToolsSettings.underline;
50
50
  import { firefox } from './utils/browser-detection';
51
51
  import { packageMetadata } from './package-metadata';
52
- import { Align } from './tools/Align';
53
- import { Indent } from './tools/Indent';
52
+ import { Align } from './tools/align';
53
+ import { Indent } from './tools/indent';
54
54
  import { List } from './tools/lists';
55
- import { Outdent } from './tools/Outdent';
56
- import { InlineFormat } from './tools/InlineFormat';
55
+ import { Outdent } from './tools/outdent';
56
+ import { InlineFormat } from './tools/inlineFormat';
57
57
  import { FontName } from './tools/fontStyle';
58
58
  import { FormatBlock } from './tools/formatBlock';
59
59
  import { ProseMirror } from './tools/proseMirrorTool';
@@ -61,7 +61,7 @@ import { LinkTool } from './tools/insertLink';
61
61
  import { Unlink } from './tools/unlink';
62
62
  import { CleanFormatting } from './tools/cleanFormatting';
63
63
  import { SelectAll } from './tools/selectAll';
64
- import { InsertImage } from './tools/InsertImage';
64
+ import { InsertImage } from './tools/insertImage';
65
65
  import { InsertTable } from './tools/insertTable/tool';
66
66
  import { ViewHtml } from './tools/viewHtml';
67
67
  import { Pdf } from './tools/pdf';
@@ -235,7 +235,7 @@ export var allTools = {
235
235
  }
236
236
  }; // tslint:enable:max-line-length
237
237
 
238
- var Editor = {
238
+ var EditorVue2 = {
239
239
  name: 'KendoEditor',
240
240
  props: {
241
241
  defaultContent: String,
@@ -250,7 +250,10 @@ var Editor = {
250
250
  contentStyle: Object,
251
251
  dir: String,
252
252
  tools: Array,
253
- keyboardNavigation: Boolean,
253
+ keyboardNavigation: {
254
+ type: Boolean,
255
+ default: true
256
+ },
254
257
  resizable: Boolean,
255
258
  preserveWhitespace: {
256
259
  type: [String, Boolean],
@@ -258,7 +261,9 @@ var Editor = {
258
261
  validator: function validator(value) {
259
262
  return [true, false, 'full'].includes(value);
260
263
  }
261
- }
264
+ },
265
+ pasteHtml: Function,
266
+ extendView: Function
262
267
  },
263
268
  data: function data() {
264
269
  return {
@@ -267,6 +272,7 @@ var Editor = {
267
272
  };
268
273
  },
269
274
  created: function created() {
275
+ this._view = undefined;
270
276
  validatePackage(packageMetadata);
271
277
  },
272
278
  mounted: function mounted() {
@@ -284,7 +290,7 @@ var Editor = {
284
290
  },
285
291
  updated: function updated() {
286
292
  var value = this.$props.value;
287
- var view = this.view;
293
+ var view = this._view;
288
294
 
289
295
  if (value === undefined || !view) {
290
296
  return;
@@ -303,8 +309,8 @@ var Editor = {
303
309
  },
304
310
  // @ts-ignore
305
311
  unmounted: function unmounted() {
306
- if (this.view) {
307
- this.view.destroy();
312
+ if (this._view) {
313
+ this._view.destroy();
308
314
  }
309
315
 
310
316
  this.view = undefined;
@@ -315,8 +321,8 @@ var Editor = {
315
321
  return this.trOnChange.doc;
316
322
  } else if (this.$props.value !== undefined) {
317
323
  return this.$props.value;
318
- } else if (this.view) {
319
- return this.view.state.doc;
324
+ } else if (this._view) {
325
+ return this._view.state.doc;
320
326
  }
321
327
 
322
328
  return this.$props.defaultContent || '';
@@ -342,9 +348,10 @@ var Editor = {
342
348
  _d = _a.preserveWhitespace,
343
349
  preserveWhitespace = _d === void 0 ? 'full' : _d,
344
350
  style = _a.style;
351
+ var view = this.getView();
345
352
 
346
- if (this.view) {
347
- var editorProps = editorPropsKey.getState(this.view.state);
353
+ if (view) {
354
+ var editorProps = editorPropsKey.getState(view.state);
348
355
  editorProps.preserveWhitespace = preserveWhitespace;
349
356
  }
350
357
 
@@ -359,9 +366,9 @@ var Editor = {
359
366
  var renderDialog = function renderDialog() {
360
367
  return this.linkDialog && // @ts-ignore function children
361
368
  h(InsertLinkDialog, {
362
- view: this.view,
369
+ view: view,
363
370
  attrs: this.v3 ? undefined : {
364
- view: this.view,
371
+ view: view,
365
372
  settings: link,
366
373
  dir: this.$props.dir
367
374
  },
@@ -379,7 +386,7 @@ var Editor = {
379
386
 
380
387
  if (allTools[currentTool]) {
381
388
  var toolProps = __assign({
382
- view: this.view,
389
+ view: view,
383
390
  dir: this.$props.dir,
384
391
  key: guid(),
385
392
  settings: allTools[currentTool].props
@@ -396,7 +403,7 @@ var Editor = {
396
403
  defaultRendering: null,
397
404
  additionalListeners: {},
398
405
  additionalProps: {
399
- view: this.view,
406
+ view: view,
400
407
  dir: this.$props.dir,
401
408
  key: index
402
409
  }
@@ -459,21 +466,41 @@ var Editor = {
459
466
  }, [h("div", {
460
467
  ref: this.v3 ? function (el) {
461
468
  _this.contentElementRef = el;
462
- } : 'contentElement',
463
- suppressContentEditableWarning: true,
464
- attrs: this.v3 ? undefined : {
465
- suppressContentEditableWarning: true
466
- }
469
+ } : 'contentElement'
467
470
  })]), renderDialog.call(this)]);
468
471
  },
469
472
  methods: {
473
+ getView: function getView() {
474
+ return this.v3 ? this._view : this.view;
475
+ },
476
+ getHTML: function getHTML() {
477
+ var view = this.getView();
478
+
479
+ if (view) {
480
+ return EditorUtils.getHtml(view.state);
481
+ }
482
+
483
+ return '';
484
+ },
485
+ setHTML: function setHTML(value) {
486
+ var view = this.getView();
487
+
488
+ if (view) {
489
+ EditorUtils.setHtml(view, value);
490
+ }
491
+ },
470
492
  focus: function focus() {
471
- if (this.view) {
472
- this.view.focus();
493
+ if (this._view) {
494
+ this._view.focus();
473
495
  }
474
496
  },
475
497
  updateTools: function updateTools(view) {
476
498
  this.view = view;
499
+
500
+ if (this.v3) {
501
+ this._view = view;
502
+ this.$forceUpdate();
503
+ }
477
504
  },
478
505
  iframeLoad: function iframeLoad() {
479
506
  if (firefox) {
@@ -551,7 +578,7 @@ var Editor = {
551
578
  })), {
552
579
  'Mod-k': function ModK() {
553
580
  var linkDialog = _this.$data.linkDialog;
554
- var editorView = _this.view;
581
+ var editorView = _this._view;
555
582
 
556
583
  if (editorView) {
557
584
  var editorState = editorView.state;
@@ -599,7 +626,8 @@ var Editor = {
599
626
  viewProps: viewProps,
600
627
  dom: dom
601
628
  };
602
- var view = this.view = onMount && onMount.call(undefined, mountEvent) || new EditorView({
629
+ this.$emit('loaded', mountEvent);
630
+ var view = this._view = this.$props.extendView && this.$props.extendView(mountEvent) || new EditorView({
603
631
  mount: dom
604
632
  }, viewProps);
605
633
  this.view = view;
@@ -610,16 +638,17 @@ var Editor = {
610
638
  transaction: transaction,
611
639
  state: state
612
640
  };
613
- return this.$emit('execute', event);
641
+ this.$emit('execute', event);
642
+ return true;
614
643
  },
615
644
  onPasteHtml: function onPasteHtml(html) {
616
- if (this.$props.onPasteHtml && this.pasteEvent) {
645
+ if (this.$props.pasteHtml && this.pasteEvent) {
617
646
  var event_1 = {
618
647
  target: this,
619
648
  pastedHtml: html,
620
- nativeEvent: this.pasteEvent
649
+ event: this.pasteEvent
621
650
  };
622
- var newHtml = this.$props.onPasteHtml.call(undefined, event_1);
651
+ var newHtml = this.$props.pasteHtml(event_1);
623
652
  this.pasteEvent = undefined;
624
653
 
625
654
  if (typeof newHtml === 'string') {
@@ -655,8 +684,8 @@ var Editor = {
655
684
  this.$emit('change', event_2);
656
685
  }
657
686
 
658
- if (this.view && (this.$props.value === undefined || !docChanged)) {
659
- this.view.updateState(this.view.state.apply(transaction));
687
+ if (this._view && (this.$props.value === undefined || !docChanged)) {
688
+ this._view.updateState(this._view.state.apply(transaction));
660
689
  }
661
690
  },
662
691
  onFocus: function onFocus(_view, nativeEvent) {
@@ -682,7 +711,7 @@ var Editor = {
682
711
  return false;
683
712
  },
684
713
  onPaste: function onPaste(_view, nativeEvent) {
685
- if (this.$props.onPasteHtml) {
714
+ if (this.$props.pasteHtml) {
686
715
  this.pasteEvent = nativeEvent;
687
716
  }
688
717
 
@@ -693,5 +722,5 @@ var Editor = {
693
722
  }
694
723
  }
695
724
  };
696
- var EditorVue3 = Editor;
697
- export { Editor, EditorVue3 };
725
+ var Editor = EditorVue2;
726
+ export { Editor, EditorVue2 };
@@ -66,7 +66,7 @@ export interface EditorPasteEvent extends EditorEvent {
66
66
  /**
67
67
  * The native paste event.
68
68
  */
69
- nativeEvent: ClipboardEvent;
69
+ event: ClipboardEvent;
70
70
  }
71
71
  /**
72
72
  * Represents the object of the `onExecute` Editor event.
@@ -127,17 +127,23 @@ export interface EditorProps {
127
127
  * Sets the tools of the Editor. By default, the Editor renders no tools.
128
128
  */
129
129
  tools?: Array<any>;
130
+ /**
131
+ * A funciton that fires each time the Editor is about to insert pasted content.
132
+ * Useful for modifying pasted content.
133
+ */
134
+ pasteHtml?: (event: EditorPasteEvent) => string | void;
130
135
  /**
131
136
  * Fires each time the Editor is about to mount.
132
137
  * Useful for configuring the `EditorView` object.
133
138
  * To initialize `EditorView`, use the properties of the `event` object.
134
139
  */
135
- onMount?: (event: EditorMountEvent) => EditorView | void;
140
+ extendView?: (event: EditorMountEvent) => EditorView | void;
136
141
  /**
137
- * Fires each time the Editor is about to insert pasted content.
138
- * Useful for modifying pasted content.
142
+ * Fires each time the Editor is about to mount.
143
+ * Useful for configuring the `EditorView` object.
144
+ * To initialize `EditorView`, use the properties of the `event` object.
139
145
  */
140
- onPastehtml?: (event: EditorPasteEvent) => string | void;
146
+ onLoaded?: (event: EditorMountEvent) => EditorView | void;
141
147
  /**
142
148
  * Fires each time the Editor is about to apply a transaction.
143
149
  * To prevent the transaction, return `false`.
@@ -1,3 +1,9 @@
1
1
  // @ts-ignore
2
2
  import { DefineComponent } from 'vue';
3
- export { DefineComponent };
3
+ // @ts-ignore
4
+ import * as Vue from 'vue';
5
+ // @ts-ignore
6
+ type Vue2type = Vue.default;
7
+ // @ts-ignore
8
+ import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
9
+ export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
@@ -17,7 +17,7 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {
17
17
  return r;
18
18
  };
19
19
  import { keys, messages } from './../messages';
20
- import { bold as boldSettings, italic as italicSettings, underline as underlineSettings, strikethrough as strikethroughSettings, subscript as subscriptSettings, superscript as superscriptSettings, link as linkSettings, alignLeftRules, alignRightRules, alignCenterRules, alignJustifyRules, alignRemoveRules, indentRules, outdentRules, undo as undoCommand, redo as redoCommand, mergeCells as mergeCellsCommand, splitCell as splitCellCommand, addRowBefore as addRowBeforeCommand, addRowAfter as addRowAfterCommand, addColumnAfter as addColumnAfterCommand, deleteRow as deleteRowCommand, deleteColumn as deleteColumnCommand, deleteTable as deleteTableCommand } from '@progress/kendo-editor-common';
20
+ import { bold as boldSettings, italic as italicSettings, underline as underlineSettings, strikethrough as strikethroughSettings, subscript as subscriptSettings, superscript as superscriptSettings, link as linkSettings, alignLeftRules, alignRightRules, alignCenterRules, alignJustifyRules, alignRemoveRules, indentRules, outdentRules, undo as undoCommand, redo as redoCommand, mergeCells as mergeCellsCommand, splitCell as splitCellCommand, addRowBefore as addRowBeforeCommand, addRowAfter as addRowAfterCommand, addColumnBefore as addColumnBeforeCommand, addColumnAfter as addColumnAfterCommand, deleteRow as deleteRowCommand, deleteColumn as deleteColumnCommand, deleteTable as deleteTableCommand } from '@progress/kendo-editor-common';
21
21
  var listsTypes = __assign({}, indentRules.listsTypes);
22
22
  /**
23
23
  * Represents a wrapping namespace for the tool settings of the Editor.
@@ -127,7 +127,7 @@ export var EditorToolsSettings;
127
127
  * The object of the AddColumnBefore tool settings.
128
128
  */
129
129
  EditorToolsSettings.addColumnBefore = {
130
- command: addRowBeforeCommand,
130
+ command: addColumnBeforeCommand,
131
131
  props: __assign({ icon: 'table-column-insert-left' }, buttonCommonProps),
132
132
  messages: {
133
133
  title: keys.addColumnBefore