@progress/kendo-vue-editor 3.4.0 → 3.4.2-dev.202207070519

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 (60) hide show
  1. package/dist/cdn/js/kendo-vue-editor.js +1 -1
  2. package/dist/es/Editor.js +11 -16
  3. package/dist/es/dialogs/FindReplace.js +4 -3
  4. package/dist/es/dialogs/insertImage.js +16 -26
  5. package/dist/es/dialogs/insertLink.js +52 -58
  6. package/dist/es/dialogs/viewHtml.js +8 -10
  7. package/dist/es/package-metadata.js +1 -1
  8. package/dist/es/tools/align.js +3 -2
  9. package/dist/es/tools/applyColor.js +3 -2
  10. package/dist/es/tools/cleanFormatting.js +3 -2
  11. package/dist/es/tools/findReplace.js +3 -2
  12. package/dist/es/tools/fontStyle.js +3 -2
  13. package/dist/es/tools/formatBlock.js +3 -2
  14. package/dist/es/tools/history.js +2 -1
  15. package/dist/es/tools/indent.js +3 -2
  16. package/dist/es/tools/inlineFormat.js +3 -2
  17. package/dist/es/tools/insertImage.js +3 -2
  18. package/dist/es/tools/insertLink.js +3 -2
  19. package/dist/es/tools/insertTable/popup.js +4 -3
  20. package/dist/es/tools/insertTable/popupGrid.js +3 -2
  21. package/dist/es/tools/insertTable/tool.js +3 -2
  22. package/dist/es/tools/lists.js +3 -2
  23. package/dist/es/tools/outdent.js +3 -2
  24. package/dist/es/tools/pdf.js +3 -2
  25. package/dist/es/tools/print.js +3 -2
  26. package/dist/es/tools/proseMirrorTool.js +3 -2
  27. package/dist/es/tools/selectAll.js +3 -2
  28. package/dist/es/tools/tableEdit.js +1 -0
  29. package/dist/es/tools/unlink.js +3 -2
  30. package/dist/es/tools/viewHtml.js +3 -2
  31. package/dist/npm/Editor.js +10 -15
  32. package/dist/npm/dialogs/FindReplace.js +4 -3
  33. package/dist/npm/dialogs/insertImage.js +17 -26
  34. package/dist/npm/dialogs/insertLink.js +53 -58
  35. package/dist/npm/dialogs/viewHtml.js +9 -10
  36. package/dist/npm/package-metadata.js +1 -1
  37. package/dist/npm/tools/align.js +3 -2
  38. package/dist/npm/tools/applyColor.js +3 -2
  39. package/dist/npm/tools/cleanFormatting.js +3 -2
  40. package/dist/npm/tools/findReplace.js +3 -2
  41. package/dist/npm/tools/fontStyle.js +3 -2
  42. package/dist/npm/tools/formatBlock.js +3 -2
  43. package/dist/npm/tools/history.js +2 -1
  44. package/dist/npm/tools/indent.js +3 -2
  45. package/dist/npm/tools/inlineFormat.js +3 -2
  46. package/dist/npm/tools/insertImage.js +3 -2
  47. package/dist/npm/tools/insertLink.js +3 -2
  48. package/dist/npm/tools/insertTable/popup.js +4 -3
  49. package/dist/npm/tools/insertTable/popupGrid.js +3 -2
  50. package/dist/npm/tools/insertTable/tool.js +3 -2
  51. package/dist/npm/tools/lists.js +3 -2
  52. package/dist/npm/tools/outdent.js +3 -2
  53. package/dist/npm/tools/pdf.js +3 -2
  54. package/dist/npm/tools/print.js +3 -2
  55. package/dist/npm/tools/proseMirrorTool.js +3 -2
  56. package/dist/npm/tools/selectAll.js +3 -2
  57. package/dist/npm/tools/tableEdit.js +1 -0
  58. package/dist/npm/tools/unlink.js +3 -2
  59. package/dist/npm/tools/viewHtml.js +3 -2
  60. package/package.json +12 -12
package/dist/es/Editor.js CHANGED
@@ -32,9 +32,10 @@ var __spreadArrays = this && this.__spreadArrays || function () {
32
32
  import * as Vue from 'vue';
33
33
  var allVue = Vue;
34
34
  var gh = allVue.h;
35
+ var isV3 = allVue.version[0] === '3';
35
36
  var markRaw = allVue.markRaw;
36
37
  import { ButtonGroup, Toolbar, ToolbarSeparator } from '@progress/kendo-vue-buttons';
37
- import { classNames, validatePackage, getTemplate, getListeners, templateRendering, guid } from '@progress/kendo-vue-common';
38
+ import { classNames, validatePackage, getTemplate, getListeners, templateRendering, guid, setRef, getRef } from '@progress/kendo-vue-common';
38
39
  import { EditorState, Plugin, PluginKey, EditorView, Schema, baseKeymap, keymap, history, dropCursor, gapCursor, getMark, spacesFix, tableEditing } from '@progress/kendo-editor-common';
39
40
  import { marks, nodes } from './config/schema';
40
41
  import { defaultStyle, tablesStyles, rtlStyles } from './config/defaultStyles';
@@ -290,8 +291,8 @@ var EditorVue2 = {
290
291
  validatePackage(packageMetadata);
291
292
  },
292
293
  mounted: function mounted() {
293
- this.iframe = this.v3 ? this.iframeRef : this.$refs.iframe;
294
- this.contentElement = this.v3 ? this.contentElementRef : this.$refs.contentElement;
294
+ this.iframe = getRef(this, 'iframe');
295
+ this.contentElement = getRef(this, 'contentElement');
295
296
 
296
297
  if (!this.iframe || !firefox) {
297
298
  this.initialize();
@@ -314,7 +315,7 @@ var EditorVue2 = {
314
315
  this.trOnChange = null;
315
316
  this.htmlOnChange = null;
316
317
  },
317
- destroyed: !!gh ? undefined : function () {
318
+ destroyed: !!isV3 ? undefined : function () {
318
319
  if (this.getView()) {
319
320
  this.getView().destroy();
320
321
  }
@@ -345,16 +346,14 @@ var EditorVue2 = {
345
346
  }
346
347
  },
347
348
  // @ts-ignore
348
- setup: !gh ? undefined : function () {
349
- var v3 = !!gh;
349
+ setup: !isV3 ? undefined : function () {
350
+ var v3 = !!isV3;
350
351
  return {
351
352
  v3: v3
352
353
  };
353
354
  },
354
355
  // @ts-ignore
355
356
  render: function render(createElement) {
356
- var _this = this;
357
-
358
357
  var h = gh || createElement;
359
358
  var toolindex = 100;
360
359
  var _a = this.$props,
@@ -478,12 +477,10 @@ var EditorVue2 = {
478
477
  on: this.v3 ? undefined : {
479
478
  "load": this.iframeLoad
480
479
  },
481
- ref: this.v3 ? function (el) {
482
- _this.iframeRef = el;
483
- } : 'iframe',
484
- frameBorder: "0",
480
+ ref: setRef(this, 'iframe'),
481
+ frameborder: "0",
485
482
  attrs: this.v3 ? undefined : {
486
- frameBorder: "0"
483
+ frameborder: "0"
487
484
  },
488
485
  style: contentStyle,
489
486
  "class": "k-iframe"
@@ -491,9 +488,7 @@ var EditorVue2 = {
491
488
  style: contentStyle,
492
489
  "class": "k-editor-content"
493
490
  }, [h("div", {
494
- ref: this.v3 ? function (el) {
495
- _this.contentElementRef = el;
496
- } : 'contentElement'
491
+ ref: setRef(this, 'contentElement')
497
492
  })]), renderDialog.call(this)]);
498
493
  },
499
494
  methods: {
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  import { Button } from '@progress/kendo-vue-buttons';
6
7
  import { Window } from '@progress/kendo-vue-dialogs';
7
8
  import { TabStrip, TabStripTab } from '@progress/kendo-vue-layout';
@@ -98,7 +99,7 @@ var FindAndReplaceDialogVue2 = {
98
99
  view.dispatch(tr);
99
100
  }
100
101
  },
101
- destroyed: !!gh ? undefined : function () {
102
+ destroyed: !!isV3 ? undefined : function () {
102
103
  if (this.$el) {
103
104
  this.$el.remove();
104
105
  }
@@ -110,8 +111,8 @@ var FindAndReplaceDialogVue2 = {
110
111
  }
111
112
  },
112
113
  // @ts-ignore
113
- setup: !gh ? undefined : function () {
114
- var v3 = !!gh;
114
+ setup: !isV3 ? undefined : function () {
115
+ var v3 = !!isV3;
115
116
  return {
116
117
  v3: v3
117
118
  };
@@ -2,11 +2,13 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  import { Dialog, DialogActionsBar } from '@progress/kendo-vue-dialogs';
6
7
  import { Button as KButton } from '@progress/kendo-vue-buttons';
7
8
  import { NodeSelection, insertNode } from '@progress/kendo-editor-common';
8
9
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
9
10
  import { messages } from './../messages';
11
+ import { getRef, setRef } from '@progress/kendo-vue-common';
10
12
  /**
11
13
  * @hidden
12
14
  */
@@ -28,27 +30,25 @@ var InsertImageDialogVue2 = {
28
30
  }
29
31
  },
30
32
  mounted: function mounted() {
31
- this.src = this.v3 ? this.srcRef : this.$refs.src;
32
- this.altText = this.v3 ? this.altTextRef : this.$refs.altText;
33
- this.title = this.v3 ? this.titleRef : this.$refs.title;
34
- this.width = this.v3 ? this.widthRef : this.$refs.width;
35
- this.height = this.v3 ? this.heightRef : this.$refs.height;
33
+ this.src = getRef(this, 'src');
34
+ this.altText = getRef(this, 'altText');
35
+ this.title = getRef(this, 'title');
36
+ this.width = getRef(this, 'width');
37
+ this.height = getRef(this, 'height');
36
38
 
37
39
  if (this.src) {
38
40
  this.src.focus();
39
41
  }
40
42
  },
41
43
  // @ts-ignore
42
- setup: !gh ? undefined : function () {
43
- var v3 = !!gh;
44
+ setup: !isV3 ? undefined : function () {
45
+ var v3 = !!isV3;
44
46
  return {
45
47
  v3: v3
46
48
  };
47
49
  },
48
50
  // @ts-ignore
49
51
  render: function render(createElement) {
50
- var _this2 = this;
51
-
52
52
  var _this = this;
53
53
 
54
54
  var h = gh || createElement;
@@ -98,9 +98,7 @@ var InsertImageDialogVue2 = {
98
98
  domProps: this.v3 ? undefined : {
99
99
  "value": attrs.src
100
100
  },
101
- ref: this.v3 ? function (el) {
102
- _this.srcRef = el;
103
- } : 'src'
101
+ ref: setRef(this, 'src')
104
102
  })])]), h("div", {
105
103
  "class": "k-edit-label"
106
104
  }, [h("label", {
@@ -124,9 +122,7 @@ var InsertImageDialogVue2 = {
124
122
  domProps: this.v3 ? undefined : {
125
123
  "value": attrs.alt
126
124
  },
127
- ref: this.v3 ? function (el) {
128
- _this.altTextRef = el;
129
- } : 'altText'
125
+ ref: setRef(this, 'altText')
130
126
  })])]), h("div", {
131
127
  "class": "k-edit-label"
132
128
  }, [h("label", {
@@ -150,9 +146,7 @@ var InsertImageDialogVue2 = {
150
146
  domProps: this.v3 ? undefined : {
151
147
  "value": attrs.title
152
148
  },
153
- ref: this.v3 ? function (el) {
154
- _this.titleRef = el;
155
- } : 'title'
149
+ ref: setRef(this, 'title')
156
150
  })])]), h("div", {
157
151
  "class": "k-edit-label"
158
152
  }, [h("label", {
@@ -176,9 +170,7 @@ var InsertImageDialogVue2 = {
176
170
  domProps: this.v3 ? undefined : {
177
171
  "value": attrs.width
178
172
  },
179
- ref: this.v3 ? function (el) {
180
- _this.widthRef = el;
181
- } : 'width'
173
+ ref: setRef(this, 'width')
182
174
  })])]), h("div", {
183
175
  "class": "k-edit-label"
184
176
  }, [h("label", {
@@ -202,9 +194,7 @@ var InsertImageDialogVue2 = {
202
194
  domProps: this.v3 ? undefined : {
203
195
  "value": attrs.height
204
196
  },
205
- ref: this.v3 ? function (el) {
206
- _this.heightRef = el;
207
- } : 'height'
197
+ ref: setRef(this, 'height')
208
198
  })])])]);
209
199
  var actionButtons = [// @ts-ignore function children
210
200
  h(KButton, {
@@ -259,10 +249,10 @@ var InsertImageDialogVue2 = {
259
249
  } : undefined
260
250
  }, this.v3 ? function () {
261
251
  return [content, // @ts-ignore function children
262
- h(DialogActionsBar, _this2.v3 ? function () {
252
+ h(DialogActionsBar, _this.v3 ? function () {
263
253
  return [actionButtons];
264
254
  } : [actionButtons])];
265
- } : [content, h(DialogActionsBar, _this2.v3 ? function () {
255
+ } : [content, h(DialogActionsBar, _this.v3 ? function () {
266
256
  return [actionButtons];
267
257
  } : [actionButtons])]);
268
258
  return dialog;
@@ -2,11 +2,13 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  import { Dialog, DialogActionsBar } from '@progress/kendo-vue-dialogs';
6
7
  import { Button as KButton } from '@progress/kendo-vue-buttons';
7
8
  import { getMark, applyLink } from '@progress/kendo-editor-common';
8
9
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
9
10
  import { messages } from './../messages';
11
+ import { getRef, setRef } from '@progress/kendo-vue-common';
10
12
  /**
11
13
  * @hidden
12
14
  */
@@ -28,16 +30,16 @@ var InsertLinkDialogVue2 = {
28
30
  }
29
31
  },
30
32
  // @ts-ignore
31
- setup: !gh ? undefined : function () {
32
- var v3 = !!gh;
33
+ setup: !isV3 ? undefined : function () {
34
+ var v3 = !!isV3;
33
35
  return {
34
36
  v3: v3
35
37
  };
36
38
  },
37
39
  mounted: function mounted() {
38
- this.href = this.v3 ? this.hrefRef : this.$refs.href;
39
- this.title = this.v3 ? this.titleRef : this.$refs.title;
40
- this.target = this.v3 ? this.targetRef : this.$refs.target;
40
+ this.href = getRef(this, 'href');
41
+ this.title = getRef(this, 'title');
42
+ this.target = getRef(this, 'target');
41
43
 
42
44
  if (this.href) {
43
45
  this.href.focus();
@@ -45,8 +47,6 @@ var InsertLinkDialogVue2 = {
45
47
  },
46
48
  // @ts-ignore
47
49
  render: function render(createElement) {
48
- var _this2 = this;
49
-
50
50
  var _this = this;
51
51
 
52
52
  var h = gh || createElement;
@@ -83,9 +83,7 @@ var InsertLinkDialogVue2 = {
83
83
  id: "k-editor-link-url"
84
84
  },
85
85
  "class": "k-input-inner",
86
- ref: this.v3 ? function (el) {
87
- _this.hrefRef = el;
88
- } : 'href',
86
+ ref: setRef(this, 'href'),
89
87
  id: "k-editor-link-url",
90
88
  value: this.v3 ? linkMark && linkMark.attrs.href || undefined : null,
91
89
  domProps: this.v3 ? undefined : {
@@ -110,9 +108,7 @@ var InsertLinkDialogVue2 = {
110
108
  },
111
109
  "class": "k-input-inner",
112
110
  id: "k-editor-link-text",
113
- ref: this.v3 ? function (el) {
114
- _this.titleRef = el;
115
- } : 'title',
111
+ ref: setRef(this, 'title'),
116
112
  value: this.v3 ? linkMark && linkMark.attrs.title || undefined : null,
117
113
  domProps: this.v3 ? undefined : {
118
114
  "value": linkMark && linkMark.attrs.title || undefined
@@ -127,9 +123,7 @@ var InsertLinkDialogVue2 = {
127
123
  },
128
124
  "class": "k-checkbox k-checkbox-md k-rounded-md",
129
125
  id: "k-editor-link-target",
130
- ref: this.v3 ? function (el) {
131
- _this.targetRef = el;
132
- } : 'target',
126
+ ref: setRef(this, 'target'),
133
127
  checked: this.v3 ? linkMark && !!linkMark.attrs.target || undefined : null,
134
128
  domProps: this.v3 ? undefined : {
135
129
  "checked": linkMark && !!linkMark.attrs.target || undefined
@@ -160,132 +154,132 @@ var InsertLinkDialogVue2 = {
160
154
  } : undefined
161
155
  }, this.v3 ? function () {
162
156
  return [content, // @ts-ignore function children
163
- h(DialogActionsBar, _this2.v3 ? function () {
157
+ h(DialogActionsBar, _this.v3 ? function () {
164
158
  return [// @ts-ignore function children
165
159
  h(KButton, {
166
160
  type: "button",
167
- attrs: _this2.v3 ? undefined : {
161
+ attrs: _this.v3 ? undefined : {
168
162
  type: "button",
169
163
  dir: dir
170
164
  },
171
- onClick: _this2.onClose,
172
- on: _this2.v3 ? undefined : {
173
- "click": _this2.onClose
165
+ onClick: _this.onClose,
166
+ on: _this.v3 ? undefined : {
167
+ "click": _this.onClose
174
168
  },
175
169
  dir: dir,
176
170
  key: "cancel"
177
- }, _this2.v3 ? function () {
171
+ }, _this.v3 ? function () {
178
172
  return [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])];
179
173
  } : [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])]), // @ts-ignore function children
180
174
  h(KButton, {
181
175
  type: "button",
182
- attrs: _this2.v3 ? undefined : {
176
+ attrs: _this.v3 ? undefined : {
183
177
  type: "button",
184
178
  themeColor: 'primary',
185
179
  dir: dir
186
180
  },
187
- onClick: _this2.onInsert,
188
- on: _this2.v3 ? undefined : {
189
- "click": _this2.onInsert
181
+ onClick: _this.onInsert,
182
+ on: _this.v3 ? undefined : {
183
+ "click": _this.onInsert
190
184
  },
191
185
  themeColor: 'primary',
192
186
  dir: dir,
193
187
  key: "insert"
194
- }, _this2.v3 ? function () {
188
+ }, _this.v3 ? function () {
195
189
  return [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])];
196
190
  } : [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])])];
197
191
  } : [h(KButton, {
198
192
  type: "button",
199
- attrs: _this2.v3 ? undefined : {
193
+ attrs: _this.v3 ? undefined : {
200
194
  type: "button",
201
195
  dir: dir
202
196
  },
203
- onClick: _this2.onClose,
204
- on: _this2.v3 ? undefined : {
205
- "click": _this2.onClose
197
+ onClick: _this.onClose,
198
+ on: _this.v3 ? undefined : {
199
+ "click": _this.onClose
206
200
  },
207
201
  dir: dir,
208
202
  key: "cancel"
209
- }, _this2.v3 ? function () {
203
+ }, _this.v3 ? function () {
210
204
  return [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])];
211
205
  } : [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])]), h(KButton, {
212
206
  type: "button",
213
- attrs: _this2.v3 ? undefined : {
207
+ attrs: _this.v3 ? undefined : {
214
208
  type: "button",
215
209
  themeColor: 'primary',
216
210
  dir: dir
217
211
  },
218
- onClick: _this2.onInsert,
219
- on: _this2.v3 ? undefined : {
220
- "click": _this2.onInsert
212
+ onClick: _this.onInsert,
213
+ on: _this.v3 ? undefined : {
214
+ "click": _this.onInsert
221
215
  },
222
216
  themeColor: 'primary',
223
217
  dir: dir,
224
218
  key: "insert"
225
- }, _this2.v3 ? function () {
219
+ }, _this.v3 ? function () {
226
220
  return [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])];
227
221
  } : [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])])])];
228
- } : [content, h(DialogActionsBar, _this2.v3 ? function () {
222
+ } : [content, h(DialogActionsBar, _this.v3 ? function () {
229
223
  return [h(KButton, {
230
224
  type: "button",
231
- attrs: _this2.v3 ? undefined : {
225
+ attrs: _this.v3 ? undefined : {
232
226
  type: "button",
233
227
  dir: dir
234
228
  },
235
- onClick: _this2.onClose,
236
- on: _this2.v3 ? undefined : {
237
- "click": _this2.onClose
229
+ onClick: _this.onClose,
230
+ on: _this.v3 ? undefined : {
231
+ "click": _this.onClose
238
232
  },
239
233
  dir: dir,
240
234
  key: "cancel"
241
- }, _this2.v3 ? function () {
235
+ }, _this.v3 ? function () {
242
236
  return [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])];
243
237
  } : [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])]), h(KButton, {
244
238
  type: "button",
245
- attrs: _this2.v3 ? undefined : {
239
+ attrs: _this.v3 ? undefined : {
246
240
  type: "button",
247
241
  themeColor: 'primary',
248
242
  dir: dir
249
243
  },
250
- onClick: _this2.onInsert,
251
- on: _this2.v3 ? undefined : {
252
- "click": _this2.onInsert
244
+ onClick: _this.onInsert,
245
+ on: _this.v3 ? undefined : {
246
+ "click": _this.onInsert
253
247
  },
254
248
  themeColor: 'primary',
255
249
  dir: dir,
256
250
  key: "insert"
257
- }, _this2.v3 ? function () {
251
+ }, _this.v3 ? function () {
258
252
  return [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])];
259
253
  } : [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])])];
260
254
  } : [h(KButton, {
261
255
  type: "button",
262
- attrs: _this2.v3 ? undefined : {
256
+ attrs: _this.v3 ? undefined : {
263
257
  type: "button",
264
258
  dir: dir
265
259
  },
266
- onClick: _this2.onClose,
267
- on: _this2.v3 ? undefined : {
268
- "click": _this2.onClose
260
+ onClick: _this.onClose,
261
+ on: _this.v3 ? undefined : {
262
+ "click": _this.onClose
269
263
  },
270
264
  dir: dir,
271
265
  key: "cancel"
272
- }, _this2.v3 ? function () {
266
+ }, _this.v3 ? function () {
273
267
  return [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])];
274
268
  } : [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])]), h(KButton, {
275
269
  type: "button",
276
- attrs: _this2.v3 ? undefined : {
270
+ attrs: _this.v3 ? undefined : {
277
271
  type: "button",
278
272
  themeColor: 'primary',
279
273
  dir: dir
280
274
  },
281
- onClick: _this2.onInsert,
282
- on: _this2.v3 ? undefined : {
283
- "click": _this2.onInsert
275
+ onClick: _this.onInsert,
276
+ on: _this.v3 ? undefined : {
277
+ "click": _this.onInsert
284
278
  },
285
279
  themeColor: 'primary',
286
280
  dir: dir,
287
281
  key: "insert"
288
- }, _this2.v3 ? function () {
282
+ }, _this.v3 ? function () {
289
283
  return [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])];
290
284
  } : [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])])])]);
291
285
  return dialog;
@@ -2,12 +2,14 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  import { Dialog, DialogActionsBar } from '@progress/kendo-vue-dialogs';
6
7
  import { Button as KButton } from '@progress/kendo-vue-buttons';
7
8
  import { getHtml, setHtml, indentHtml, trimWhitespace } from '@progress/kendo-editor-common';
8
9
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
9
10
  import { messages } from './../messages';
10
11
  import { editorPropsKey } from './../utils/props-key';
12
+ import { getRef, setRef } from '@progress/kendo-vue-common';
11
13
  /**
12
14
  * @hidden
13
15
  */
@@ -25,19 +27,17 @@ var ViewHtmlDialogVue2 = {
25
27
  }
26
28
  },
27
29
  mounted: function mounted() {
28
- this.htmlArea = this.v3 ? this.htmlAreaRef : this.$refs.htmlArea;
30
+ this.htmlArea = getRef(this, 'htmlArea');
29
31
  },
30
32
  // @ts-ignore
31
- setup: !gh ? undefined : function () {
32
- var v3 = !!gh;
33
+ setup: !isV3 ? undefined : function () {
34
+ var v3 = !!isV3;
33
35
  return {
34
36
  v3: v3
35
37
  };
36
38
  },
37
39
  // @ts-ignore
38
40
  render: function render(createElement) {
39
- var _this2 = this;
40
-
41
41
  var _this = this;
42
42
 
43
43
  var h = gh || createElement;
@@ -56,9 +56,7 @@ var ViewHtmlDialogVue2 = {
56
56
  height: '280px',
57
57
  width: '490px'
58
58
  },
59
- ref: this.v3 ? function (el) {
60
- _this.htmlAreaRef = el;
61
- } : 'htmlArea',
59
+ ref: setRef(this, 'htmlArea'),
62
60
  value: this.v3 ? indentHtml(getHtml(view.state)) : null,
63
61
  domProps: this.v3 ? undefined : {
64
62
  "value": indentHtml(getHtml(view.state))
@@ -117,10 +115,10 @@ var ViewHtmlDialogVue2 = {
117
115
  } : undefined
118
116
  }, this.v3 ? function () {
119
117
  return [content, // @ts-ignore function children
120
- h(DialogActionsBar, _this2.v3 ? function () {
118
+ h(DialogActionsBar, _this.v3 ? function () {
121
119
  return [actionButtons];
122
120
  } : [actionButtons])];
123
- } : [content, h(DialogActionsBar, _this2.v3 ? function () {
121
+ } : [content, h(DialogActionsBar, _this.v3 ? function () {
124
122
  return [actionButtons];
125
123
  } : [actionButtons])]);
126
124
  return dialog;
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-editor',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1655871760,
8
+ publishDate: 1657170712,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
11
11
  };
@@ -31,6 +31,7 @@ var __rest = this && this.__rest || function (s, e) {
31
31
  import * as Vue from 'vue';
32
32
  var allVue = Vue;
33
33
  var gh = allVue.h;
34
+ var isV3 = allVue.version[0] === '3';
34
35
  import { Button as kbutton } from '@progress/kendo-vue-buttons';
35
36
  import { EditorToolsSettings } from '../config/toolsSettings';
36
37
  import { alignBlocks, isAligned } from '@progress/kendo-editor-common';
@@ -60,8 +61,8 @@ var AlignVue2 = {
60
61
  }
61
62
  },
62
63
  // @ts-ignore
63
- setup: !gh ? undefined : function () {
64
- var v3 = !!gh;
64
+ setup: !isV3 ? undefined : function () {
65
+ var v3 = !!isV3;
65
66
  return {
66
67
  v3: v3
67
68
  };
@@ -18,6 +18,7 @@ var __assign = this && this.__assign || function () {
18
18
  import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
+ var isV3 = allVue.version[0] === '3';
21
22
  import { ColorPicker } from '@progress/kendo-vue-inputs';
22
23
  import { applyInlineStyle } from '@progress/kendo-editor-common';
23
24
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
@@ -41,8 +42,8 @@ var ApplyColorVue2 = {
41
42
  }
42
43
  },
43
44
  // @ts-ignore
44
- setup: !gh ? undefined : function () {
45
- var v3 = !!gh;
45
+ setup: !isV3 ? undefined : function () {
46
+ var v3 = !!isV3;
46
47
  return {
47
48
  v3: v3
48
49
  };
@@ -31,6 +31,7 @@ var __rest = this && this.__rest || function (s, e) {
31
31
  import * as Vue from 'vue';
32
32
  var allVue = Vue;
33
33
  var gh = allVue.h;
34
+ var isV3 = allVue.version[0] === '3';
34
35
  import { Button as kbutton } from '@progress/kendo-vue-buttons';
35
36
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
36
37
  import { messages } from '../messages';
@@ -59,8 +60,8 @@ var CleanFormattingVue2 = {
59
60
  }
60
61
  },
61
62
  // @ts-ignore
62
- setup: !gh ? undefined : function () {
63
- var v3 = !!gh;
63
+ setup: !isV3 ? undefined : function () {
64
+ var v3 = !!isV3;
64
65
  return {
65
66
  v3: v3
66
67
  };
@@ -31,6 +31,7 @@ var __rest = this && this.__rest || function (s, e) {
31
31
  import * as Vue from 'vue';
32
32
  var allVue = Vue;
33
33
  var gh = allVue.h;
34
+ var isV3 = allVue.version[0] === '3';
34
35
  import { Button as kbutton } from '@progress/kendo-vue-buttons';
35
36
  import { FindAndReplaceDialog } from '../dialogs/FindReplace';
36
37
  import { messages } from './../messages';
@@ -57,8 +58,8 @@ var FindAndReplaceVue2 = {
57
58
  };
58
59
  },
59
60
  // @ts-ignore
60
- setup: !gh ? undefined : function () {
61
- var v3 = !!gh;
61
+ setup: !isV3 ? undefined : function () {
62
+ var v3 = !!isV3;
62
63
  return {
63
64
  v3: v3
64
65
  };
@@ -45,6 +45,7 @@ var __spreadArrays = this && this.__spreadArrays || function () {
45
45
  import * as Vue from 'vue';
46
46
  var allVue = Vue;
47
47
  var gh = allVue.h;
48
+ var isV3 = allVue.version[0] === '3';
48
49
  import { DropDownList } from '@progress/kendo-vue-dropdowns';
49
50
  import { getInlineStyles, applyInlineStyle } from '@progress/kendo-editor-common';
50
51
  import { userSelectNone } from './utils';
@@ -73,8 +74,8 @@ var FontNameVue2 = {
73
74
  }
74
75
  },
75
76
  // @ts-ignore
76
- setup: !gh ? undefined : function () {
77
- var v3 = !!gh;
77
+ setup: !isV3 ? undefined : function () {
78
+ var v3 = !!isV3;
78
79
  return {
79
80
  v3: v3
80
81
  };
@@ -45,6 +45,7 @@ var __spreadArrays = this && this.__spreadArrays || function () {
45
45
  import * as Vue from 'vue';
46
46
  var allVue = Vue;
47
47
  var gh = allVue.h;
48
+ var isV3 = allVue.version[0] === '3';
48
49
  import { DropDownList } from '@progress/kendo-vue-dropdowns';
49
50
  import { getBlockFormats, formatBlockElements } from '@progress/kendo-editor-common';
50
51
  import { userSelectNone } from './utils';
@@ -73,8 +74,8 @@ var FormatBlockVue2 = {
73
74
  }
74
75
  },
75
76
  // @ts-ignore
76
- setup: !gh ? undefined : function () {
77
- var v3 = !!gh;
77
+ setup: !isV3 ? undefined : function () {
78
+ var v3 = !!isV3;
78
79
  return {
79
80
  v3: v3
80
81
  };
@@ -1,4 +1,5 @@
1
1
  // @ts-ignore
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
- var gh = allVue.h;
4
+ var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';