@keyblade/tinymce-editor-vue2 0.0.12-alpha.3 → 0.0.12-alpha.31

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/es/index.d.ts CHANGED
@@ -1,822 +1,238 @@
1
- import { Editor, RawEditorOptions } from 'tinymce';
1
+ import { RawEditorOptions } from 'tinymce';
2
+ import { AudioUploadOptions, ImageUploadOptions, VideoUploadOptions } from './types';
2
3
 
3
4
  interface TinymceEditorGlobalOptions {
4
- /** 图片上传请求处理,需要返回图片地址 */
5
- imageUploadHandle?: (file: File | Blob, filename: string, options?: {
6
- extParameters?: Record<string, any>;
7
- }) => Promise<{
8
- success: boolean;
9
- url?: string;
10
- errorMessage?: string;
11
- }>;
12
- /** 接着默认配置进行处理 */
13
- paste_preprocess?: (editor: Editor, args: {
14
- content: string;
15
- readonly internal: boolean;
16
- }) => void;
17
- /** 接着默认配置进行处理 */
18
- paste_postprocess?: (editor: Editor, args: {
19
- node: HTMLElement;
20
- readonly internal: boolean;
21
- }) => void;
22
- tinymceOptions?: RawEditorOptions;
23
- /** imgPond 选项 */
5
+ /** 富文本编辑器选项 */
6
+ options?: RawEditorOptions;
7
+ /** 图片上传选项 */
8
+ imageUploadOptions?: ImageUploadOptions;
9
+ /** imgPond选项 */
24
10
  imgPondOptions?: Record<string, any>;
25
11
  /** 音频上传选项 */
26
- audioUploadOptions?: {
27
- action: string;
28
- handlerResponse: (response: any) => {
29
- url?: string;
30
- errorMessage?: string;
31
- };
32
- headers?: Record<string, any>;
33
- data?: Record<string, any>;
34
- };
12
+ audioUploadOptions?: AudioUploadOptions;
35
13
  /** 视频上传选项 */
36
- videoUploadOptions?: {
37
- action: string;
38
- handlerResponse: (response: any) => {
39
- url?: string;
40
- errorMessage?: string;
41
- };
42
- headers?: Record<string, any>;
43
- data?: Record<string, any>;
44
- };
14
+ videoUploadOptions?: VideoUploadOptions;
45
15
  }
46
16
  declare const globalProps: TinymceEditorGlobalOptions;
47
17
  declare const TinymceEditor: import('vue/types/v3-component-public-instance').ComponentPublicInstanceConstructor<import('vue/types/v3-component-public-instance').Vue3Instance<{}, Readonly<import('vue').ExtractPropTypes<{
48
- imageMaxSize: {
49
- type: import('vue').PropType<number>;
50
- default: number;
51
- };
52
- imageAllowedMineType: {
53
- type: import('vue').PropType<string[]>;
54
- default: () => string[];
55
- };
56
- imageMinWidth: {
57
- type: import('vue').PropType<number>;
58
- default: number;
59
- };
60
- imageMinHeight: {
61
- type: import('vue').PropType<number>;
62
- default: number;
63
- };
64
- imageMaxWidth: {
65
- type: import('vue').PropType<number>;
66
- default: number;
67
- };
68
- imageMaxHeight: {
69
- type: import('vue').PropType<number>;
70
- default: number;
71
- };
72
18
  value: {
73
19
  type: import('vue').PropType<string>;
74
20
  default: string;
75
21
  };
76
- modelValue: {
77
- type: import('vue').PropType<string>;
78
- default: string;
79
- };
80
22
  disabled: {
81
23
  type: import('vue').PropType<boolean>;
24
+ default: boolean;
82
25
  };
83
26
  extParameters: {
84
27
  type: import('vue').PropType<Record<string, any>>;
28
+ default: () => {};
85
29
  };
86
- imageUploadMaxCount: {
87
- type: import('vue').PropType<number>;
88
- default: number;
89
- };
90
- imageUploadTip: {
91
- type: import('vue').PropType<string>;
92
- default: string;
93
- };
94
- imageAllowedType: {
95
- type: import('vue').PropType<string[]>;
96
- default: () => string[];
30
+ options: {
31
+ type: import('vue').PropType<Partial<RawEditorOptions>>;
32
+ default: () => {};
97
33
  };
98
- audioMaxSize: {
99
- type: import('vue').PropType<number>;
100
- default: number;
34
+ imageUploadOptions: {
35
+ type: import('vue').PropType<ImageUploadOptions>;
101
36
  };
102
- audioAllowedType: {
103
- type: import('vue').PropType<string[]>;
104
- default: () => string[];
37
+ imgPondOptions: {
38
+ type: import('vue').PropType<Record<string, any>>;
105
39
  };
106
40
  audioUploadOptions: {
107
- type: import('vue').PropType<{
108
- action: string;
109
- handlerResponse: (response: any) => {
110
- url?: string | undefined;
111
- errorMessage?: string | undefined;
112
- };
113
- headers?: Record<string, any> | undefined;
114
- data?: Record<string, any> | undefined;
115
- }>;
116
- };
117
- videoMaxSize: {
118
- type: import('vue').PropType<number>;
119
- default: number;
120
- };
121
- videoAllowedType: {
122
- type: import('vue').PropType<string[]>;
123
- default: () => string[];
41
+ type: import('vue').PropType<AudioUploadOptions>;
124
42
  };
125
43
  videoUploadOptions: {
126
- type: import('vue').PropType<{
127
- action: string;
128
- handlerResponse: (response: any) => {
129
- url?: string | undefined;
130
- errorMessage?: string | undefined;
131
- };
132
- headers?: Record<string, any> | undefined;
133
- data?: Record<string, any> | undefined;
134
- }>;
135
- };
136
- imageUploadHandle: {
137
- type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
138
- extParameters?: Record<string, any> | undefined;
139
- } | undefined) => Promise<{
140
- success: boolean;
141
- url?: string | undefined;
142
- errorMessage?: string | undefined;
143
- }>>;
144
- };
145
- paste_preprocess: {
146
- type: import('vue').PropType<(editor: Editor, args: {
147
- content: string;
148
- readonly internal: boolean;
149
- }) => void>;
150
- };
151
- paste_postprocess: {
152
- type: import('vue').PropType<(editor: Editor, args: {
153
- node: HTMLElement;
154
- readonly internal: boolean;
155
- }) => void>;
44
+ type: import('vue').PropType<VideoUploadOptions>;
156
45
  };
157
46
  initComplete: {
158
47
  type: import('vue').PropType<(params: {
159
- editorIns: Editor;
48
+ editorIns: import('tinymce').Editor;
160
49
  }) => void>;
161
50
  };
162
- options: {
163
- type: import('vue').PropType<Partial<RawEditorOptions>>;
164
- default: () => {};
165
- };
166
- imgPondOptions: {
167
- type: import('vue').PropType<Record<string, any>>;
168
- };
169
51
  }>>, Readonly<import('vue').ExtractPropTypes<{
170
- imageMaxSize: {
171
- type: import('vue').PropType<number>;
172
- default: number;
173
- };
174
- imageAllowedMineType: {
175
- type: import('vue').PropType<string[]>;
176
- default: () => string[];
177
- };
178
- imageMinWidth: {
179
- type: import('vue').PropType<number>;
180
- default: number;
181
- };
182
- imageMinHeight: {
183
- type: import('vue').PropType<number>;
184
- default: number;
185
- };
186
- imageMaxWidth: {
187
- type: import('vue').PropType<number>;
188
- default: number;
189
- };
190
- imageMaxHeight: {
191
- type: import('vue').PropType<number>;
192
- default: number;
193
- };
194
52
  value: {
195
53
  type: import('vue').PropType<string>;
196
54
  default: string;
197
55
  };
198
- modelValue: {
199
- type: import('vue').PropType<string>;
200
- default: string;
201
- };
202
56
  disabled: {
203
57
  type: import('vue').PropType<boolean>;
58
+ default: boolean;
204
59
  };
205
60
  extParameters: {
206
61
  type: import('vue').PropType<Record<string, any>>;
62
+ default: () => {};
207
63
  };
208
- imageUploadMaxCount: {
209
- type: import('vue').PropType<number>;
210
- default: number;
211
- };
212
- imageUploadTip: {
213
- type: import('vue').PropType<string>;
214
- default: string;
215
- };
216
- imageAllowedType: {
217
- type: import('vue').PropType<string[]>;
218
- default: () => string[];
64
+ options: {
65
+ type: import('vue').PropType<Partial<RawEditorOptions>>;
66
+ default: () => {};
219
67
  };
220
- audioMaxSize: {
221
- type: import('vue').PropType<number>;
222
- default: number;
68
+ imageUploadOptions: {
69
+ type: import('vue').PropType<ImageUploadOptions>;
223
70
  };
224
- audioAllowedType: {
225
- type: import('vue').PropType<string[]>;
226
- default: () => string[];
71
+ imgPondOptions: {
72
+ type: import('vue').PropType<Record<string, any>>;
227
73
  };
228
74
  audioUploadOptions: {
229
- type: import('vue').PropType<{
230
- action: string;
231
- handlerResponse: (response: any) => {
232
- url?: string | undefined;
233
- errorMessage?: string | undefined;
234
- };
235
- headers?: Record<string, any> | undefined;
236
- data?: Record<string, any> | undefined;
237
- }>;
238
- };
239
- videoMaxSize: {
240
- type: import('vue').PropType<number>;
241
- default: number;
242
- };
243
- videoAllowedType: {
244
- type: import('vue').PropType<string[]>;
245
- default: () => string[];
75
+ type: import('vue').PropType<AudioUploadOptions>;
246
76
  };
247
77
  videoUploadOptions: {
248
- type: import('vue').PropType<{
249
- action: string;
250
- handlerResponse: (response: any) => {
251
- url?: string | undefined;
252
- errorMessage?: string | undefined;
253
- };
254
- headers?: Record<string, any> | undefined;
255
- data?: Record<string, any> | undefined;
256
- }>;
257
- };
258
- imageUploadHandle: {
259
- type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
260
- extParameters?: Record<string, any> | undefined;
261
- } | undefined) => Promise<{
262
- success: boolean;
263
- url?: string | undefined;
264
- errorMessage?: string | undefined;
265
- }>>;
266
- };
267
- paste_preprocess: {
268
- type: import('vue').PropType<(editor: Editor, args: {
269
- content: string;
270
- readonly internal: boolean;
271
- }) => void>;
272
- };
273
- paste_postprocess: {
274
- type: import('vue').PropType<(editor: Editor, args: {
275
- node: HTMLElement;
276
- readonly internal: boolean;
277
- }) => void>;
78
+ type: import('vue').PropType<VideoUploadOptions>;
278
79
  };
279
80
  initComplete: {
280
81
  type: import('vue').PropType<(params: {
281
- editorIns: Editor;
82
+ editorIns: import('tinymce').Editor;
282
83
  }) => void>;
283
84
  };
284
- options: {
285
- type: import('vue').PropType<Partial<RawEditorOptions>>;
286
- default: () => {};
287
- };
288
- imgPondOptions: {
289
- type: import('vue').PropType<Record<string, any>>;
290
- };
291
85
  }>>, {
292
86
  input: (value: string) => void;
293
- "update:modelValue": (value: string) => void;
294
87
  }, {
295
- imageMaxSize: number;
296
- imageAllowedMineType: string[];
297
- imageMinWidth: number;
298
- imageMinHeight: number;
299
- imageMaxWidth: number;
300
- imageMaxHeight: number;
301
88
  value: string;
302
- modelValue: string;
303
- imageUploadMaxCount: number;
304
- imageUploadTip: string;
305
- imageAllowedType: string[];
306
- audioMaxSize: number;
307
- audioAllowedType: string[];
308
- videoMaxSize: number;
309
- videoAllowedType: string[];
89
+ disabled: boolean;
90
+ extParameters: Record<string, any>;
310
91
  options: Partial<RawEditorOptions>;
311
92
  }, true, import('vue/types/v3-component-options').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import('vue').ExtractPropTypes<{
312
- imageMaxSize: {
313
- type: import('vue').PropType<number>;
314
- default: number;
315
- };
316
- imageAllowedMineType: {
317
- type: import('vue').PropType<string[]>;
318
- default: () => string[];
319
- };
320
- imageMinWidth: {
321
- type: import('vue').PropType<number>;
322
- default: number;
323
- };
324
- imageMinHeight: {
325
- type: import('vue').PropType<number>;
326
- default: number;
327
- };
328
- imageMaxWidth: {
329
- type: import('vue').PropType<number>;
330
- default: number;
331
- };
332
- imageMaxHeight: {
333
- type: import('vue').PropType<number>;
334
- default: number;
335
- };
336
93
  value: {
337
94
  type: import('vue').PropType<string>;
338
95
  default: string;
339
96
  };
340
- modelValue: {
341
- type: import('vue').PropType<string>;
342
- default: string;
343
- };
344
97
  disabled: {
345
98
  type: import('vue').PropType<boolean>;
99
+ default: boolean;
346
100
  };
347
101
  extParameters: {
348
102
  type: import('vue').PropType<Record<string, any>>;
103
+ default: () => {};
349
104
  };
350
- imageUploadMaxCount: {
351
- type: import('vue').PropType<number>;
352
- default: number;
353
- };
354
- imageUploadTip: {
355
- type: import('vue').PropType<string>;
356
- default: string;
357
- };
358
- imageAllowedType: {
359
- type: import('vue').PropType<string[]>;
360
- default: () => string[];
105
+ options: {
106
+ type: import('vue').PropType<Partial<RawEditorOptions>>;
107
+ default: () => {};
361
108
  };
362
- audioMaxSize: {
363
- type: import('vue').PropType<number>;
364
- default: number;
109
+ imageUploadOptions: {
110
+ type: import('vue').PropType<ImageUploadOptions>;
365
111
  };
366
- audioAllowedType: {
367
- type: import('vue').PropType<string[]>;
368
- default: () => string[];
112
+ imgPondOptions: {
113
+ type: import('vue').PropType<Record<string, any>>;
369
114
  };
370
115
  audioUploadOptions: {
371
- type: import('vue').PropType<{
372
- action: string;
373
- handlerResponse: (response: any) => {
374
- url?: string | undefined;
375
- errorMessage?: string | undefined;
376
- };
377
- headers?: Record<string, any> | undefined;
378
- data?: Record<string, any> | undefined;
379
- }>;
380
- };
381
- videoMaxSize: {
382
- type: import('vue').PropType<number>;
383
- default: number;
384
- };
385
- videoAllowedType: {
386
- type: import('vue').PropType<string[]>;
387
- default: () => string[];
116
+ type: import('vue').PropType<AudioUploadOptions>;
388
117
  };
389
118
  videoUploadOptions: {
390
- type: import('vue').PropType<{
391
- action: string;
392
- handlerResponse: (response: any) => {
393
- url?: string | undefined;
394
- errorMessage?: string | undefined;
395
- };
396
- headers?: Record<string, any> | undefined;
397
- data?: Record<string, any> | undefined;
398
- }>;
399
- };
400
- imageUploadHandle: {
401
- type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
402
- extParameters?: Record<string, any> | undefined;
403
- } | undefined) => Promise<{
404
- success: boolean;
405
- url?: string | undefined;
406
- errorMessage?: string | undefined;
407
- }>>;
408
- };
409
- paste_preprocess: {
410
- type: import('vue').PropType<(editor: Editor, args: {
411
- content: string;
412
- readonly internal: boolean;
413
- }) => void>;
414
- };
415
- paste_postprocess: {
416
- type: import('vue').PropType<(editor: Editor, args: {
417
- node: HTMLElement;
418
- readonly internal: boolean;
419
- }) => void>;
119
+ type: import('vue').PropType<VideoUploadOptions>;
420
120
  };
421
121
  initComplete: {
422
122
  type: import('vue').PropType<(params: {
423
- editorIns: Editor;
123
+ editorIns: import('tinymce').Editor;
424
124
  }) => void>;
425
125
  };
426
- options: {
427
- type: import('vue').PropType<Partial<RawEditorOptions>>;
428
- default: () => {};
429
- };
430
- imgPondOptions: {
431
- type: import('vue').PropType<Record<string, any>>;
432
- };
433
126
  }>>> & import('vue').ShallowUnwrapRef<{}> & import('vue/types/v3-component-options').ExtractComputedReturns<{}> & import('vue').ComponentCustomProperties & Readonly<import('vue').ExtractPropTypes<{
434
- imageMaxSize: {
435
- type: import('vue').PropType<number>;
436
- default: number;
437
- };
438
- imageAllowedMineType: {
439
- type: import('vue').PropType<string[]>;
440
- default: () => string[];
441
- };
442
- imageMinWidth: {
443
- type: import('vue').PropType<number>;
444
- default: number;
445
- };
446
- imageMinHeight: {
447
- type: import('vue').PropType<number>;
448
- default: number;
449
- };
450
- imageMaxWidth: {
451
- type: import('vue').PropType<number>;
452
- default: number;
453
- };
454
- imageMaxHeight: {
455
- type: import('vue').PropType<number>;
456
- default: number;
457
- };
458
127
  value: {
459
128
  type: import('vue').PropType<string>;
460
129
  default: string;
461
130
  };
462
- modelValue: {
463
- type: import('vue').PropType<string>;
464
- default: string;
465
- };
466
131
  disabled: {
467
132
  type: import('vue').PropType<boolean>;
133
+ default: boolean;
468
134
  };
469
135
  extParameters: {
470
136
  type: import('vue').PropType<Record<string, any>>;
137
+ default: () => {};
471
138
  };
472
- imageUploadMaxCount: {
473
- type: import('vue').PropType<number>;
474
- default: number;
475
- };
476
- imageUploadTip: {
477
- type: import('vue').PropType<string>;
478
- default: string;
479
- };
480
- imageAllowedType: {
481
- type: import('vue').PropType<string[]>;
482
- default: () => string[];
139
+ options: {
140
+ type: import('vue').PropType<Partial<RawEditorOptions>>;
141
+ default: () => {};
483
142
  };
484
- audioMaxSize: {
485
- type: import('vue').PropType<number>;
486
- default: number;
143
+ imageUploadOptions: {
144
+ type: import('vue').PropType<ImageUploadOptions>;
487
145
  };
488
- audioAllowedType: {
489
- type: import('vue').PropType<string[]>;
490
- default: () => string[];
146
+ imgPondOptions: {
147
+ type: import('vue').PropType<Record<string, any>>;
491
148
  };
492
149
  audioUploadOptions: {
493
- type: import('vue').PropType<{
494
- action: string;
495
- handlerResponse: (response: any) => {
496
- url?: string | undefined;
497
- errorMessage?: string | undefined;
498
- };
499
- headers?: Record<string, any> | undefined;
500
- data?: Record<string, any> | undefined;
501
- }>;
502
- };
503
- videoMaxSize: {
504
- type: import('vue').PropType<number>;
505
- default: number;
506
- };
507
- videoAllowedType: {
508
- type: import('vue').PropType<string[]>;
509
- default: () => string[];
150
+ type: import('vue').PropType<AudioUploadOptions>;
510
151
  };
511
152
  videoUploadOptions: {
512
- type: import('vue').PropType<{
513
- action: string;
514
- handlerResponse: (response: any) => {
515
- url?: string | undefined;
516
- errorMessage?: string | undefined;
517
- };
518
- headers?: Record<string, any> | undefined;
519
- data?: Record<string, any> | undefined;
520
- }>;
521
- };
522
- imageUploadHandle: {
523
- type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
524
- extParameters?: Record<string, any> | undefined;
525
- } | undefined) => Promise<{
526
- success: boolean;
527
- url?: string | undefined;
528
- errorMessage?: string | undefined;
529
- }>>;
530
- };
531
- paste_preprocess: {
532
- type: import('vue').PropType<(editor: Editor, args: {
533
- content: string;
534
- readonly internal: boolean;
535
- }) => void>;
536
- };
537
- paste_postprocess: {
538
- type: import('vue').PropType<(editor: Editor, args: {
539
- node: HTMLElement;
540
- readonly internal: boolean;
541
- }) => void>;
153
+ type: import('vue').PropType<VideoUploadOptions>;
542
154
  };
543
155
  initComplete: {
544
156
  type: import('vue').PropType<(params: {
545
- editorIns: Editor;
157
+ editorIns: import('tinymce').Editor;
546
158
  }) => void>;
547
159
  };
548
- options: {
549
- type: import('vue').PropType<Partial<RawEditorOptions>>;
550
- default: () => {};
551
- };
552
- imgPondOptions: {
553
- type: import('vue').PropType<Record<string, any>>;
554
- };
555
160
  }>>> & import('vue/types/v3-component-options').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
556
- imageMaxSize: {
557
- type: import('vue').PropType<number>;
558
- default: number;
559
- };
560
- imageAllowedMineType: {
561
- type: import('vue').PropType<string[]>;
562
- default: () => string[];
563
- };
564
- imageMinWidth: {
565
- type: import('vue').PropType<number>;
566
- default: number;
567
- };
568
- imageMinHeight: {
569
- type: import('vue').PropType<number>;
570
- default: number;
571
- };
572
- imageMaxWidth: {
573
- type: import('vue').PropType<number>;
574
- default: number;
575
- };
576
- imageMaxHeight: {
577
- type: import('vue').PropType<number>;
578
- default: number;
579
- };
580
161
  value: {
581
162
  type: import('vue').PropType<string>;
582
163
  default: string;
583
164
  };
584
- modelValue: {
585
- type: import('vue').PropType<string>;
586
- default: string;
587
- };
588
165
  disabled: {
589
166
  type: import('vue').PropType<boolean>;
167
+ default: boolean;
590
168
  };
591
169
  extParameters: {
592
170
  type: import('vue').PropType<Record<string, any>>;
171
+ default: () => {};
593
172
  };
594
- imageUploadMaxCount: {
595
- type: import('vue').PropType<number>;
596
- default: number;
597
- };
598
- imageUploadTip: {
599
- type: import('vue').PropType<string>;
600
- default: string;
601
- };
602
- imageAllowedType: {
603
- type: import('vue').PropType<string[]>;
604
- default: () => string[];
173
+ options: {
174
+ type: import('vue').PropType<Partial<RawEditorOptions>>;
175
+ default: () => {};
605
176
  };
606
- audioMaxSize: {
607
- type: import('vue').PropType<number>;
608
- default: number;
177
+ imageUploadOptions: {
178
+ type: import('vue').PropType<ImageUploadOptions>;
609
179
  };
610
- audioAllowedType: {
611
- type: import('vue').PropType<string[]>;
612
- default: () => string[];
180
+ imgPondOptions: {
181
+ type: import('vue').PropType<Record<string, any>>;
613
182
  };
614
183
  audioUploadOptions: {
615
- type: import('vue').PropType<{
616
- action: string;
617
- handlerResponse: (response: any) => {
618
- url?: string | undefined;
619
- errorMessage?: string | undefined;
620
- };
621
- headers?: Record<string, any> | undefined;
622
- data?: Record<string, any> | undefined;
623
- }>;
624
- };
625
- videoMaxSize: {
626
- type: import('vue').PropType<number>;
627
- default: number;
628
- };
629
- videoAllowedType: {
630
- type: import('vue').PropType<string[]>;
631
- default: () => string[];
184
+ type: import('vue').PropType<AudioUploadOptions>;
632
185
  };
633
186
  videoUploadOptions: {
634
- type: import('vue').PropType<{
635
- action: string;
636
- handlerResponse: (response: any) => {
637
- url?: string | undefined;
638
- errorMessage?: string | undefined;
639
- };
640
- headers?: Record<string, any> | undefined;
641
- data?: Record<string, any> | undefined;
642
- }>;
643
- };
644
- imageUploadHandle: {
645
- type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
646
- extParameters?: Record<string, any> | undefined;
647
- } | undefined) => Promise<{
648
- success: boolean;
649
- url?: string | undefined;
650
- errorMessage?: string | undefined;
651
- }>>;
652
- };
653
- paste_preprocess: {
654
- type: import('vue').PropType<(editor: Editor, args: {
655
- content: string;
656
- readonly internal: boolean;
657
- }) => void>;
658
- };
659
- paste_postprocess: {
660
- type: import('vue').PropType<(editor: Editor, args: {
661
- node: HTMLElement;
662
- readonly internal: boolean;
663
- }) => void>;
187
+ type: import('vue').PropType<VideoUploadOptions>;
664
188
  };
665
189
  initComplete: {
666
190
  type: import('vue').PropType<(params: {
667
- editorIns: Editor;
191
+ editorIns: import('tinymce').Editor;
668
192
  }) => void>;
669
193
  };
670
- options: {
671
- type: import('vue').PropType<Partial<RawEditorOptions>>;
672
- default: () => {};
673
- };
674
- imgPondOptions: {
675
- type: import('vue').PropType<Record<string, any>>;
676
- };
677
194
  }>>, {}, {}, {}, {}, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {
678
195
  input: (value: string) => void;
679
- "update:modelValue": (value: string) => void;
680
196
  }, string, {
681
- imageMaxSize: number;
682
- imageAllowedMineType: string[];
683
- imageMinWidth: number;
684
- imageMinHeight: number;
685
- imageMaxWidth: number;
686
- imageMaxHeight: number;
687
197
  value: string;
688
- modelValue: string;
689
- imageUploadMaxCount: number;
690
- imageUploadTip: string;
691
- imageAllowedType: string[];
692
- audioMaxSize: number;
693
- audioAllowedType: string[];
694
- videoMaxSize: number;
695
- videoAllowedType: string[];
198
+ disabled: boolean;
199
+ extParameters: Record<string, any>;
696
200
  options: Partial<RawEditorOptions>;
697
201
  }> & {
698
202
  props: {
699
- imageMaxSize: {
700
- type: import('vue').PropType<number>;
701
- default: number;
702
- };
703
- imageAllowedMineType: {
704
- type: import('vue').PropType<string[]>;
705
- default: () => string[];
706
- };
707
- imageMinWidth: {
708
- type: import('vue').PropType<number>;
709
- default: number;
710
- };
711
- imageMinHeight: {
712
- type: import('vue').PropType<number>;
713
- default: number;
714
- };
715
- imageMaxWidth: {
716
- type: import('vue').PropType<number>;
717
- default: number;
718
- };
719
- imageMaxHeight: {
720
- type: import('vue').PropType<number>;
721
- default: number;
722
- };
723
203
  value: {
724
204
  type: import('vue').PropType<string>;
725
205
  default: string;
726
206
  };
727
- modelValue: {
728
- type: import('vue').PropType<string>;
729
- default: string;
730
- };
731
207
  disabled: {
732
208
  type: import('vue').PropType<boolean>;
209
+ default: boolean;
733
210
  };
734
211
  extParameters: {
735
212
  type: import('vue').PropType<Record<string, any>>;
213
+ default: () => {};
736
214
  };
737
- imageUploadMaxCount: {
738
- type: import('vue').PropType<number>;
739
- default: number;
740
- };
741
- imageUploadTip: {
742
- type: import('vue').PropType<string>;
743
- default: string;
744
- };
745
- imageAllowedType: {
746
- type: import('vue').PropType<string[]>;
747
- default: () => string[];
215
+ options: {
216
+ type: import('vue').PropType<Partial<RawEditorOptions>>;
217
+ default: () => {};
748
218
  };
749
- audioMaxSize: {
750
- type: import('vue').PropType<number>;
751
- default: number;
219
+ imageUploadOptions: {
220
+ type: import('vue').PropType<ImageUploadOptions>;
752
221
  };
753
- audioAllowedType: {
754
- type: import('vue').PropType<string[]>;
755
- default: () => string[];
222
+ imgPondOptions: {
223
+ type: import('vue').PropType<Record<string, any>>;
756
224
  };
757
225
  audioUploadOptions: {
758
- type: import('vue').PropType<{
759
- action: string;
760
- handlerResponse: (response: any) => {
761
- url?: string | undefined;
762
- errorMessage?: string | undefined;
763
- };
764
- headers?: Record<string, any> | undefined;
765
- data?: Record<string, any> | undefined;
766
- }>;
767
- };
768
- videoMaxSize: {
769
- type: import('vue').PropType<number>;
770
- default: number;
771
- };
772
- videoAllowedType: {
773
- type: import('vue').PropType<string[]>;
774
- default: () => string[];
226
+ type: import('vue').PropType<AudioUploadOptions>;
775
227
  };
776
228
  videoUploadOptions: {
777
- type: import('vue').PropType<{
778
- action: string;
779
- handlerResponse: (response: any) => {
780
- url?: string | undefined;
781
- errorMessage?: string | undefined;
782
- };
783
- headers?: Record<string, any> | undefined;
784
- data?: Record<string, any> | undefined;
785
- }>;
786
- };
787
- imageUploadHandle: {
788
- type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
789
- extParameters?: Record<string, any> | undefined;
790
- } | undefined) => Promise<{
791
- success: boolean;
792
- url?: string | undefined;
793
- errorMessage?: string | undefined;
794
- }>>;
795
- };
796
- paste_preprocess: {
797
- type: import('vue').PropType<(editor: Editor, args: {
798
- content: string;
799
- readonly internal: boolean;
800
- }) => void>;
801
- };
802
- paste_postprocess: {
803
- type: import('vue').PropType<(editor: Editor, args: {
804
- node: HTMLElement;
805
- readonly internal: boolean;
806
- }) => void>;
229
+ type: import('vue').PropType<VideoUploadOptions>;
807
230
  };
808
231
  initComplete: {
809
232
  type: import('vue').PropType<(params: {
810
- editorIns: Editor;
233
+ editorIns: import('tinymce').Editor;
811
234
  }) => void>;
812
235
  };
813
- options: {
814
- type: import('vue').PropType<Partial<RawEditorOptions>>;
815
- default: () => {};
816
- };
817
- imgPondOptions: {
818
- type: import('vue').PropType<Record<string, any>>;
819
- };
820
236
  };
821
237
  } & {
822
238
  install: (app: any, options?: TinymceEditorGlobalOptions) => void;