@keyblade/tinymce-editor-vue2 0.0.12-alpha.9 → 0.1.0

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