@progress/kendo-vue-editor 3.7.4-dev.202301151601 → 3.7.4-dev.202301171215

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.
@@ -9,6 +9,8 @@ import { getMark, applyLink } from '@progress/kendo-editor-common';
9
9
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
10
10
  import { messages } from '../messages/main';
11
11
  import { getRef, setRef } from '@progress/kendo-vue-common';
12
+ import { Form as KForm, FormElement, FieldWrapper } from '@progress/kendo-vue-form';
13
+ import { Input, Checkbox } from '@progress/kendo-vue-inputs';
12
14
  /**
13
15
  * @hidden
14
16
  */
@@ -23,6 +25,17 @@ var InsertLinkDialogVue2 = {
23
25
  settings: Object,
24
26
  dir: String
25
27
  },
28
+ data: function data() {
29
+ var _a = this.$props,
30
+ view = _a.view,
31
+ settings = _a.settings;
32
+ var linkMark = view ? getMark(view.state, view.state.schema.marks[settings.mark]) : false;
33
+ return {
34
+ hrefValue: linkMark && linkMark.attrs.href || undefined,
35
+ titleValue: linkMark && linkMark.attrs.title || undefined,
36
+ targetValue: linkMark && !!linkMark.attrs.target || undefined
37
+ };
38
+ },
26
39
  inject: {
27
40
  kendoLocalizationService: {
28
41
  default: null
@@ -48,7 +61,6 @@ var InsertLinkDialogVue2 = {
48
61
  var _this = this;
49
62
  var h = gh || createElement;
50
63
  var _a = this.$props,
51
- view = _a.view,
52
64
  settings = _a.settings,
53
65
  dir = _a.dir;
54
66
  var localization = provideLocalizationService(this);
@@ -59,79 +71,562 @@ var InsertLinkDialogVue2 = {
59
71
  insertHyperlinkNewWindow = _b.insertHyperlinkNewWindow,
60
72
  insertHyperlinkCancel = _b.insertHyperlinkCancel,
61
73
  insertHyperlinkInsert = _b.insertHyperlinkInsert;
62
- var linkMark = view ? getMark(view.state, view.state.schema.marks[settings.mark]) : false;
63
- var content = h("div", {
64
- "class": "k-edit-form-container"
65
- }, [h("div", {
66
- "class": "k-edit-label"
67
- }, [h("label", {
68
- "for": "k-editor-link-url",
69
- attrs: this.v3 ? undefined : {
70
- "for": "k-editor-link-url"
74
+ var checkboxLabel = localization.toLanguageString(insertHyperlinkNewWindow, messages[insertHyperlinkNewWindow]);
75
+ var content =
76
+ // @ts-ignore function children
77
+ h(KForm, this.v3 ? function () {
78
+ return [
79
+ // @ts-ignore function children
80
+ h(FormElement, {
81
+ horizontal: true,
82
+ attrs: _this.v3 ? undefined : {
83
+ horizontal: true
84
+ }
85
+ }, _this.v3 ? function () {
86
+ return [
87
+ // @ts-ignore function children
88
+ h(FieldWrapper, _this.v3 ? function () {
89
+ return [h("label", {
90
+ "for": 'k-editor-link-url',
91
+ attrs: _this.v3 ? undefined : {
92
+ "for": 'k-editor-link-url'
93
+ },
94
+ "class": 'k-form-label'
95
+ }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
96
+ "class": 'k-form-field-wrap'
97
+ }, [h(Input, {
98
+ type: "text",
99
+ attrs: _this.v3 ? undefined : {
100
+ type: "text",
101
+ id: 'k-editor-link-url',
102
+ value: _this.hrefValue
103
+ },
104
+ id: 'k-editor-link-url',
105
+ ref: setRef(_this, 'href'),
106
+ onInput: _this.hrefChange,
107
+ on: _this.v3 ? undefined : {
108
+ "input": _this.hrefChange
109
+ },
110
+ value: _this.hrefValue
111
+ })])];
112
+ } : [h("label", {
113
+ "for": 'k-editor-link-url',
114
+ attrs: _this.v3 ? undefined : {
115
+ "for": 'k-editor-link-url'
116
+ },
117
+ "class": 'k-form-label'
118
+ }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
119
+ "class": 'k-form-field-wrap'
120
+ }, [h(Input, {
121
+ type: "text",
122
+ attrs: _this.v3 ? undefined : {
123
+ type: "text",
124
+ id: 'k-editor-link-url',
125
+ value: _this.hrefValue
126
+ },
127
+ id: 'k-editor-link-url',
128
+ ref: setRef(_this, 'href'),
129
+ onInput: _this.hrefChange,
130
+ on: _this.v3 ? undefined : {
131
+ "input": _this.hrefChange
132
+ },
133
+ value: _this.hrefValue
134
+ })])]),
135
+ // @ts-ignore function children
136
+ h(FieldWrapper, _this.v3 ? function () {
137
+ return [h("label", {
138
+ "for": 'k-editor-link-text',
139
+ attrs: _this.v3 ? undefined : {
140
+ "for": 'k-editor-link-text'
141
+ },
142
+ "class": 'k-form-label'
143
+ }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
144
+ "class": 'k-form-field-wrap'
145
+ }, [h(Input, {
146
+ type: "text",
147
+ attrs: _this.v3 ? undefined : {
148
+ type: "text",
149
+ id: 'k-editor-link-text',
150
+ value: _this.titleValue
151
+ },
152
+ id: 'k-editor-link-text',
153
+ ref: setRef(_this, 'title'),
154
+ onInput: _this.titleChange,
155
+ on: _this.v3 ? undefined : {
156
+ "input": _this.titleChange
157
+ },
158
+ value: _this.titleValue
159
+ })])];
160
+ } : [h("label", {
161
+ "for": 'k-editor-link-text',
162
+ attrs: _this.v3 ? undefined : {
163
+ "for": 'k-editor-link-text'
164
+ },
165
+ "class": 'k-form-label'
166
+ }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
167
+ "class": 'k-form-field-wrap'
168
+ }, [h(Input, {
169
+ type: "text",
170
+ attrs: _this.v3 ? undefined : {
171
+ type: "text",
172
+ id: 'k-editor-link-text',
173
+ value: _this.titleValue
174
+ },
175
+ id: 'k-editor-link-text',
176
+ ref: setRef(_this, 'title'),
177
+ onInput: _this.titleChange,
178
+ on: _this.v3 ? undefined : {
179
+ "input": _this.titleChange
180
+ },
181
+ value: _this.titleValue
182
+ })])]), settings.linkTarget !== false &&
183
+ // @ts-ignore function children
184
+ h(FieldWrapper, _this.v3 ? function () {
185
+ return [h("div", {
186
+ "class": 'k-form-label'
187
+ }), h("div", {
188
+ "class": 'k-form-field-wrap'
189
+ }, [h(Checkbox, {
190
+ "class": 'k-checkbox-wrap',
191
+ id: 'k-editor-link-target',
192
+ attrs: _this.v3 ? undefined : {
193
+ id: 'k-editor-link-target',
194
+ label: checkboxLabel,
195
+ checked: _this.targetValue
196
+ },
197
+ ref: setRef(_this, 'target'),
198
+ label: checkboxLabel,
199
+ onChange: _this.targetChange,
200
+ on: _this.v3 ? undefined : {
201
+ "change": _this.targetChange
202
+ },
203
+ checked: _this.targetValue
204
+ })])];
205
+ } : [h("div", {
206
+ "class": 'k-form-label'
207
+ }), h("div", {
208
+ "class": 'k-form-field-wrap'
209
+ }, [h(Checkbox, {
210
+ "class": 'k-checkbox-wrap',
211
+ id: 'k-editor-link-target',
212
+ attrs: _this.v3 ? undefined : {
213
+ id: 'k-editor-link-target',
214
+ label: checkboxLabel,
215
+ checked: _this.targetValue
216
+ },
217
+ ref: setRef(_this, 'target'),
218
+ label: checkboxLabel,
219
+ onChange: _this.targetChange,
220
+ on: _this.v3 ? undefined : {
221
+ "change": _this.targetChange
222
+ },
223
+ checked: _this.targetValue
224
+ })])])];
225
+ } : [h(FieldWrapper, _this.v3 ? function () {
226
+ return [h("label", {
227
+ "for": 'k-editor-link-url',
228
+ attrs: _this.v3 ? undefined : {
229
+ "for": 'k-editor-link-url'
230
+ },
231
+ "class": 'k-form-label'
232
+ }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
233
+ "class": 'k-form-field-wrap'
234
+ }, [h(Input, {
235
+ type: "text",
236
+ attrs: _this.v3 ? undefined : {
237
+ type: "text",
238
+ id: 'k-editor-link-url',
239
+ value: _this.hrefValue
240
+ },
241
+ id: 'k-editor-link-url',
242
+ ref: setRef(_this, 'href'),
243
+ onInput: _this.hrefChange,
244
+ on: _this.v3 ? undefined : {
245
+ "input": _this.hrefChange
246
+ },
247
+ value: _this.hrefValue
248
+ })])];
249
+ } : [h("label", {
250
+ "for": 'k-editor-link-url',
251
+ attrs: _this.v3 ? undefined : {
252
+ "for": 'k-editor-link-url'
253
+ },
254
+ "class": 'k-form-label'
255
+ }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
256
+ "class": 'k-form-field-wrap'
257
+ }, [h(Input, {
258
+ type: "text",
259
+ attrs: _this.v3 ? undefined : {
260
+ type: "text",
261
+ id: 'k-editor-link-url',
262
+ value: _this.hrefValue
263
+ },
264
+ id: 'k-editor-link-url',
265
+ ref: setRef(_this, 'href'),
266
+ onInput: _this.hrefChange,
267
+ on: _this.v3 ? undefined : {
268
+ "input": _this.hrefChange
269
+ },
270
+ value: _this.hrefValue
271
+ })])]), h(FieldWrapper, _this.v3 ? function () {
272
+ return [h("label", {
273
+ "for": 'k-editor-link-text',
274
+ attrs: _this.v3 ? undefined : {
275
+ "for": 'k-editor-link-text'
276
+ },
277
+ "class": 'k-form-label'
278
+ }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
279
+ "class": 'k-form-field-wrap'
280
+ }, [h(Input, {
281
+ type: "text",
282
+ attrs: _this.v3 ? undefined : {
283
+ type: "text",
284
+ id: 'k-editor-link-text',
285
+ value: _this.titleValue
286
+ },
287
+ id: 'k-editor-link-text',
288
+ ref: setRef(_this, 'title'),
289
+ onInput: _this.titleChange,
290
+ on: _this.v3 ? undefined : {
291
+ "input": _this.titleChange
292
+ },
293
+ value: _this.titleValue
294
+ })])];
295
+ } : [h("label", {
296
+ "for": 'k-editor-link-text',
297
+ attrs: _this.v3 ? undefined : {
298
+ "for": 'k-editor-link-text'
299
+ },
300
+ "class": 'k-form-label'
301
+ }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
302
+ "class": 'k-form-field-wrap'
303
+ }, [h(Input, {
304
+ type: "text",
305
+ attrs: _this.v3 ? undefined : {
306
+ type: "text",
307
+ id: 'k-editor-link-text',
308
+ value: _this.titleValue
309
+ },
310
+ id: 'k-editor-link-text',
311
+ ref: setRef(_this, 'title'),
312
+ onInput: _this.titleChange,
313
+ on: _this.v3 ? undefined : {
314
+ "input": _this.titleChange
315
+ },
316
+ value: _this.titleValue
317
+ })])]), settings.linkTarget !== false && h(FieldWrapper, _this.v3 ? function () {
318
+ return [h("div", {
319
+ "class": 'k-form-label'
320
+ }), h("div", {
321
+ "class": 'k-form-field-wrap'
322
+ }, [h(Checkbox, {
323
+ "class": 'k-checkbox-wrap',
324
+ id: 'k-editor-link-target',
325
+ attrs: _this.v3 ? undefined : {
326
+ id: 'k-editor-link-target',
327
+ label: checkboxLabel,
328
+ checked: _this.targetValue
329
+ },
330
+ ref: setRef(_this, 'target'),
331
+ label: checkboxLabel,
332
+ onChange: _this.targetChange,
333
+ on: _this.v3 ? undefined : {
334
+ "change": _this.targetChange
335
+ },
336
+ checked: _this.targetValue
337
+ })])];
338
+ } : [h("div", {
339
+ "class": 'k-form-label'
340
+ }), h("div", {
341
+ "class": 'k-form-field-wrap'
342
+ }, [h(Checkbox, {
343
+ "class": 'k-checkbox-wrap',
344
+ id: 'k-editor-link-target',
345
+ attrs: _this.v3 ? undefined : {
346
+ id: 'k-editor-link-target',
347
+ label: checkboxLabel,
348
+ checked: _this.targetValue
349
+ },
350
+ ref: setRef(_this, 'target'),
351
+ label: checkboxLabel,
352
+ onChange: _this.targetChange,
353
+ on: _this.v3 ? undefined : {
354
+ "change": _this.targetChange
355
+ },
356
+ checked: _this.targetValue
357
+ })])])])];
358
+ } : [h(FormElement, {
359
+ horizontal: true,
360
+ attrs: _this.v3 ? undefined : {
361
+ horizontal: true
71
362
  }
72
- }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])])]), h("div", {
73
- "class": "k-edit-field"
74
- }, [h("span", {
75
- "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
76
- }, [h("input", {
363
+ }, _this.v3 ? function () {
364
+ return [h(FieldWrapper, _this.v3 ? function () {
365
+ return [h("label", {
366
+ "for": 'k-editor-link-url',
367
+ attrs: _this.v3 ? undefined : {
368
+ "for": 'k-editor-link-url'
369
+ },
370
+ "class": 'k-form-label'
371
+ }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
372
+ "class": 'k-form-field-wrap'
373
+ }, [h(Input, {
374
+ type: "text",
375
+ attrs: _this.v3 ? undefined : {
376
+ type: "text",
377
+ id: 'k-editor-link-url',
378
+ value: _this.hrefValue
379
+ },
380
+ id: 'k-editor-link-url',
381
+ ref: setRef(_this, 'href'),
382
+ onInput: _this.hrefChange,
383
+ on: _this.v3 ? undefined : {
384
+ "input": _this.hrefChange
385
+ },
386
+ value: _this.hrefValue
387
+ })])];
388
+ } : [h("label", {
389
+ "for": 'k-editor-link-url',
390
+ attrs: _this.v3 ? undefined : {
391
+ "for": 'k-editor-link-url'
392
+ },
393
+ "class": 'k-form-label'
394
+ }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
395
+ "class": 'k-form-field-wrap'
396
+ }, [h(Input, {
397
+ type: "text",
398
+ attrs: _this.v3 ? undefined : {
399
+ type: "text",
400
+ id: 'k-editor-link-url',
401
+ value: _this.hrefValue
402
+ },
403
+ id: 'k-editor-link-url',
404
+ ref: setRef(_this, 'href'),
405
+ onInput: _this.hrefChange,
406
+ on: _this.v3 ? undefined : {
407
+ "input": _this.hrefChange
408
+ },
409
+ value: _this.hrefValue
410
+ })])]), h(FieldWrapper, _this.v3 ? function () {
411
+ return [h("label", {
412
+ "for": 'k-editor-link-text',
413
+ attrs: _this.v3 ? undefined : {
414
+ "for": 'k-editor-link-text'
415
+ },
416
+ "class": 'k-form-label'
417
+ }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
418
+ "class": 'k-form-field-wrap'
419
+ }, [h(Input, {
420
+ type: "text",
421
+ attrs: _this.v3 ? undefined : {
422
+ type: "text",
423
+ id: 'k-editor-link-text',
424
+ value: _this.titleValue
425
+ },
426
+ id: 'k-editor-link-text',
427
+ ref: setRef(_this, 'title'),
428
+ onInput: _this.titleChange,
429
+ on: _this.v3 ? undefined : {
430
+ "input": _this.titleChange
431
+ },
432
+ value: _this.titleValue
433
+ })])];
434
+ } : [h("label", {
435
+ "for": 'k-editor-link-text',
436
+ attrs: _this.v3 ? undefined : {
437
+ "for": 'k-editor-link-text'
438
+ },
439
+ "class": 'k-form-label'
440
+ }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
441
+ "class": 'k-form-field-wrap'
442
+ }, [h(Input, {
443
+ type: "text",
444
+ attrs: _this.v3 ? undefined : {
445
+ type: "text",
446
+ id: 'k-editor-link-text',
447
+ value: _this.titleValue
448
+ },
449
+ id: 'k-editor-link-text',
450
+ ref: setRef(_this, 'title'),
451
+ onInput: _this.titleChange,
452
+ on: _this.v3 ? undefined : {
453
+ "input": _this.titleChange
454
+ },
455
+ value: _this.titleValue
456
+ })])]), settings.linkTarget !== false && h(FieldWrapper, _this.v3 ? function () {
457
+ return [h("div", {
458
+ "class": 'k-form-label'
459
+ }), h("div", {
460
+ "class": 'k-form-field-wrap'
461
+ }, [h(Checkbox, {
462
+ "class": 'k-checkbox-wrap',
463
+ id: 'k-editor-link-target',
464
+ attrs: _this.v3 ? undefined : {
465
+ id: 'k-editor-link-target',
466
+ label: checkboxLabel,
467
+ checked: _this.targetValue
468
+ },
469
+ ref: setRef(_this, 'target'),
470
+ label: checkboxLabel,
471
+ onChange: _this.targetChange,
472
+ on: _this.v3 ? undefined : {
473
+ "change": _this.targetChange
474
+ },
475
+ checked: _this.targetValue
476
+ })])];
477
+ } : [h("div", {
478
+ "class": 'k-form-label'
479
+ }), h("div", {
480
+ "class": 'k-form-field-wrap'
481
+ }, [h(Checkbox, {
482
+ "class": 'k-checkbox-wrap',
483
+ id: 'k-editor-link-target',
484
+ attrs: _this.v3 ? undefined : {
485
+ id: 'k-editor-link-target',
486
+ label: checkboxLabel,
487
+ checked: _this.targetValue
488
+ },
489
+ ref: setRef(_this, 'target'),
490
+ label: checkboxLabel,
491
+ onChange: _this.targetChange,
492
+ on: _this.v3 ? undefined : {
493
+ "change": _this.targetChange
494
+ },
495
+ checked: _this.targetValue
496
+ })])])];
497
+ } : [h(FieldWrapper, _this.v3 ? function () {
498
+ return [h("label", {
499
+ "for": 'k-editor-link-url',
500
+ attrs: _this.v3 ? undefined : {
501
+ "for": 'k-editor-link-url'
502
+ },
503
+ "class": 'k-form-label'
504
+ }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
505
+ "class": 'k-form-field-wrap'
506
+ }, [h(Input, {
507
+ type: "text",
508
+ attrs: _this.v3 ? undefined : {
509
+ type: "text",
510
+ id: 'k-editor-link-url',
511
+ value: _this.hrefValue
512
+ },
513
+ id: 'k-editor-link-url',
514
+ ref: setRef(_this, 'href'),
515
+ onInput: _this.hrefChange,
516
+ on: _this.v3 ? undefined : {
517
+ "input": _this.hrefChange
518
+ },
519
+ value: _this.hrefValue
520
+ })])];
521
+ } : [h("label", {
522
+ "for": 'k-editor-link-url',
523
+ attrs: _this.v3 ? undefined : {
524
+ "for": 'k-editor-link-url'
525
+ },
526
+ "class": 'k-form-label'
527
+ }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
528
+ "class": 'k-form-field-wrap'
529
+ }, [h(Input, {
77
530
  type: "text",
78
- attrs: this.v3 ? undefined : {
531
+ attrs: _this.v3 ? undefined : {
79
532
  type: "text",
80
- id: "k-editor-link-url"
533
+ id: 'k-editor-link-url',
534
+ value: _this.hrefValue
81
535
  },
82
- "class": "k-input-inner",
83
- ref: setRef(this, 'href'),
84
- id: "k-editor-link-url",
85
- value: this.v3 ? linkMark && linkMark.attrs.href || undefined : null,
86
- domProps: this.v3 ? undefined : {
87
- "value": linkMark && linkMark.attrs.href || undefined
88
- }
89
- })])]), h("div", {
90
- "class": "k-edit-label k-editor-link-text-row"
91
- }, [h("label", {
92
- "for": "k-editor-link-text",
93
- attrs: this.v3 ? undefined : {
94
- "for": "k-editor-link-text"
95
- }
96
- }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])])]), h("div", {
97
- "class": "k-edit-field k-editor-link-text-row"
98
- }, [h("span", {
99
- "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
100
- }, [h("input", {
536
+ id: 'k-editor-link-url',
537
+ ref: setRef(_this, 'href'),
538
+ onInput: _this.hrefChange,
539
+ on: _this.v3 ? undefined : {
540
+ "input": _this.hrefChange
541
+ },
542
+ value: _this.hrefValue
543
+ })])]), h(FieldWrapper, _this.v3 ? function () {
544
+ return [h("label", {
545
+ "for": 'k-editor-link-text',
546
+ attrs: _this.v3 ? undefined : {
547
+ "for": 'k-editor-link-text'
548
+ },
549
+ "class": 'k-form-label'
550
+ }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
551
+ "class": 'k-form-field-wrap'
552
+ }, [h(Input, {
553
+ type: "text",
554
+ attrs: _this.v3 ? undefined : {
555
+ type: "text",
556
+ id: 'k-editor-link-text',
557
+ value: _this.titleValue
558
+ },
559
+ id: 'k-editor-link-text',
560
+ ref: setRef(_this, 'title'),
561
+ onInput: _this.titleChange,
562
+ on: _this.v3 ? undefined : {
563
+ "input": _this.titleChange
564
+ },
565
+ value: _this.titleValue
566
+ })])];
567
+ } : [h("label", {
568
+ "for": 'k-editor-link-text',
569
+ attrs: _this.v3 ? undefined : {
570
+ "for": 'k-editor-link-text'
571
+ },
572
+ "class": 'k-form-label'
573
+ }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
574
+ "class": 'k-form-field-wrap'
575
+ }, [h(Input, {
101
576
  type: "text",
102
- attrs: this.v3 ? undefined : {
577
+ attrs: _this.v3 ? undefined : {
103
578
  type: "text",
104
- id: "k-editor-link-text"
579
+ id: 'k-editor-link-text',
580
+ value: _this.titleValue
105
581
  },
106
- "class": "k-input-inner",
107
- id: "k-editor-link-text",
108
- ref: setRef(this, 'title'),
109
- value: this.v3 ? linkMark && linkMark.attrs.title || undefined : null,
110
- domProps: this.v3 ? undefined : {
111
- "value": linkMark && linkMark.attrs.title || undefined
112
- }
113
- })])]), settings.linkTarget !== false && h("div", {
114
- "class": "k-edit-field"
115
- }, [h("input", {
116
- type: "checkbox",
117
- attrs: this.v3 ? undefined : {
118
- type: "checkbox",
119
- id: "k-editor-link-target"
582
+ id: 'k-editor-link-text',
583
+ ref: setRef(_this, 'title'),
584
+ onInput: _this.titleChange,
585
+ on: _this.v3 ? undefined : {
586
+ "input": _this.titleChange
120
587
  },
121
- "class": "k-checkbox k-checkbox-md k-rounded-md",
122
- id: "k-editor-link-target",
123
- ref: setRef(this, 'target'),
124
- checked: this.v3 ? linkMark && !!linkMark.attrs.target || undefined : null,
125
- domProps: this.v3 ? undefined : {
126
- "checked": linkMark && !!linkMark.attrs.target || undefined
127
- }
128
- }), h("label", {
129
- "for": "k-editor-link-target",
130
- attrs: this.v3 ? undefined : {
131
- "for": "k-editor-link-target"
588
+ value: _this.titleValue
589
+ })])]), settings.linkTarget !== false && h(FieldWrapper, _this.v3 ? function () {
590
+ return [h("div", {
591
+ "class": 'k-form-label'
592
+ }), h("div", {
593
+ "class": 'k-form-field-wrap'
594
+ }, [h(Checkbox, {
595
+ "class": 'k-checkbox-wrap',
596
+ id: 'k-editor-link-target',
597
+ attrs: _this.v3 ? undefined : {
598
+ id: 'k-editor-link-target',
599
+ label: checkboxLabel,
600
+ checked: _this.targetValue
601
+ },
602
+ ref: setRef(_this, 'target'),
603
+ label: checkboxLabel,
604
+ onChange: _this.targetChange,
605
+ on: _this.v3 ? undefined : {
606
+ "change": _this.targetChange
607
+ },
608
+ checked: _this.targetValue
609
+ })])];
610
+ } : [h("div", {
611
+ "class": 'k-form-label'
612
+ }), h("div", {
613
+ "class": 'k-form-field-wrap'
614
+ }, [h(Checkbox, {
615
+ "class": 'k-checkbox-wrap',
616
+ id: 'k-editor-link-target',
617
+ attrs: _this.v3 ? undefined : {
618
+ id: 'k-editor-link-target',
619
+ label: checkboxLabel,
620
+ checked: _this.targetValue
132
621
  },
133
- "class": "k-checkbox-label"
134
- }, [localization.toLanguageString(insertHyperlinkNewWindow, messages[insertHyperlinkNewWindow])])])]);
622
+ ref: setRef(_this, 'target'),
623
+ label: checkboxLabel,
624
+ onChange: _this.targetChange,
625
+ on: _this.v3 ? undefined : {
626
+ "change": _this.targetChange
627
+ },
628
+ checked: _this.targetValue
629
+ })])])])]);
135
630
  var dialog =
136
631
  // @ts-ignore function children
137
632
  h(Window, {
@@ -303,6 +798,15 @@ var InsertLinkDialogVue2 = {
303
798
  return dialog;
304
799
  },
305
800
  methods: {
801
+ hrefChange: function hrefChange(e) {
802
+ this.hrefValue = e.value;
803
+ },
804
+ titleChange: function titleChange(e) {
805
+ this.titleValue = e.value;
806
+ },
807
+ targetChange: function targetChange(e) {
808
+ this.targetValue = e.value;
809
+ },
306
810
  onClose: function onClose() {
307
811
  this.$props.view.focus();
308
812
  this.$emit('close');
@@ -311,9 +815,9 @@ var InsertLinkDialogVue2 = {
311
815
  var view = this.$props.view;
312
816
  var mark = this.$props.settings.mark;
313
817
  var attrs = {
314
- href: this.href ? this.href.value : undefined,
315
- title: this.title ? this.title.value : undefined,
316
- target: this.target && this.target.checked ? '_blank' : undefined
818
+ href: this.href ? this.hrefValue : undefined,
819
+ title: this.title ? this.titleValue : undefined,
820
+ target: this.target && this.targetValue ? '_blank' : undefined
317
821
  };
318
822
  applyLink({
319
823
  mark: mark,