@keyblade/tinymce-editor-vue2 0.0.11 → 0.0.12-alpha.3
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/README.md +13 -13
- package/es/editor.vue.d.ts +89 -3
- package/es/editor.vue.js +18 -11
- package/es/editor.vue2.js +279 -124
- package/es/index.d.ts +407 -86
- package/es/index.js +11 -6
- package/es/style.css +1 -1
- package/es/util.d.ts +40 -0
- package/es/util.js +75 -0
- package/package.json +7 -3
- package/src/index.ts +35 -12
package/es/index.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { Editor, RawEditorOptions } from 'tinymce';
|
|
2
2
|
|
|
3
3
|
interface TinymceEditorGlobalOptions {
|
|
4
|
-
message?: {
|
|
5
|
-
loading?: (message?: string) => {
|
|
6
|
-
close: () => void;
|
|
7
|
-
};
|
|
8
|
-
success?: (message?: string) => void;
|
|
9
|
-
error?: (message?: string) => void;
|
|
10
|
-
destroy?: () => void;
|
|
11
|
-
};
|
|
12
4
|
/** 图片上传请求处理,需要返回图片地址 */
|
|
13
5
|
imageUploadHandle?: (file: File | Blob, filename: string, options?: {
|
|
14
6
|
extParameters?: Record<string, any>;
|
|
@@ -28,9 +20,55 @@ interface TinymceEditorGlobalOptions {
|
|
|
28
20
|
readonly internal: boolean;
|
|
29
21
|
}) => void;
|
|
30
22
|
tinymceOptions?: RawEditorOptions;
|
|
23
|
+
/** imgPond 选项 */
|
|
24
|
+
imgPondOptions?: Record<string, any>;
|
|
25
|
+
/** 音频上传选项 */
|
|
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
|
+
};
|
|
35
|
+
/** 视频上传选项 */
|
|
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
|
+
};
|
|
31
45
|
}
|
|
32
46
|
declare const globalProps: TinymceEditorGlobalOptions;
|
|
33
47
|
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
|
+
};
|
|
34
72
|
value: {
|
|
35
73
|
type: import('vue').PropType<string>;
|
|
36
74
|
default: string;
|
|
@@ -45,33 +83,55 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
45
83
|
extParameters: {
|
|
46
84
|
type: import('vue').PropType<Record<string, any>>;
|
|
47
85
|
};
|
|
48
|
-
|
|
86
|
+
imageUploadMaxCount: {
|
|
49
87
|
type: import('vue').PropType<number>;
|
|
50
88
|
default: number;
|
|
51
89
|
};
|
|
90
|
+
imageUploadTip: {
|
|
91
|
+
type: import('vue').PropType<string>;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
52
94
|
imageAllowedType: {
|
|
53
95
|
type: import('vue').PropType<string[]>;
|
|
54
96
|
default: () => string[];
|
|
55
97
|
};
|
|
56
|
-
|
|
98
|
+
audioMaxSize: {
|
|
99
|
+
type: import('vue').PropType<number>;
|
|
100
|
+
default: number;
|
|
101
|
+
};
|
|
102
|
+
audioAllowedType: {
|
|
57
103
|
type: import('vue').PropType<string[]>;
|
|
58
104
|
default: () => string[];
|
|
59
105
|
};
|
|
60
|
-
|
|
61
|
-
type: import('vue').PropType<
|
|
62
|
-
|
|
106
|
+
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
|
+
}>;
|
|
63
116
|
};
|
|
64
|
-
|
|
117
|
+
videoMaxSize: {
|
|
65
118
|
type: import('vue').PropType<number>;
|
|
66
119
|
default: number;
|
|
67
120
|
};
|
|
68
|
-
|
|
69
|
-
type: import('vue').PropType<
|
|
70
|
-
default:
|
|
121
|
+
videoAllowedType: {
|
|
122
|
+
type: import('vue').PropType<string[]>;
|
|
123
|
+
default: () => string[];
|
|
71
124
|
};
|
|
72
|
-
|
|
73
|
-
type: import('vue').PropType<
|
|
74
|
-
|
|
125
|
+
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
|
+
}>;
|
|
75
135
|
};
|
|
76
136
|
imageUploadHandle: {
|
|
77
137
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
@@ -103,7 +163,34 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
103
163
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
104
164
|
default: () => {};
|
|
105
165
|
};
|
|
166
|
+
imgPondOptions: {
|
|
167
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
168
|
+
};
|
|
106
169
|
}>>, 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
|
+
};
|
|
107
194
|
value: {
|
|
108
195
|
type: import('vue').PropType<string>;
|
|
109
196
|
default: string;
|
|
@@ -118,33 +205,55 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
118
205
|
extParameters: {
|
|
119
206
|
type: import('vue').PropType<Record<string, any>>;
|
|
120
207
|
};
|
|
121
|
-
|
|
208
|
+
imageUploadMaxCount: {
|
|
122
209
|
type: import('vue').PropType<number>;
|
|
123
210
|
default: number;
|
|
124
211
|
};
|
|
212
|
+
imageUploadTip: {
|
|
213
|
+
type: import('vue').PropType<string>;
|
|
214
|
+
default: string;
|
|
215
|
+
};
|
|
125
216
|
imageAllowedType: {
|
|
126
217
|
type: import('vue').PropType<string[]>;
|
|
127
218
|
default: () => string[];
|
|
128
219
|
};
|
|
129
|
-
|
|
220
|
+
audioMaxSize: {
|
|
221
|
+
type: import('vue').PropType<number>;
|
|
222
|
+
default: number;
|
|
223
|
+
};
|
|
224
|
+
audioAllowedType: {
|
|
130
225
|
type: import('vue').PropType<string[]>;
|
|
131
226
|
default: () => string[];
|
|
132
227
|
};
|
|
133
|
-
|
|
134
|
-
type: import('vue').PropType<
|
|
135
|
-
|
|
228
|
+
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
|
+
}>;
|
|
136
238
|
};
|
|
137
|
-
|
|
239
|
+
videoMaxSize: {
|
|
138
240
|
type: import('vue').PropType<number>;
|
|
139
241
|
default: number;
|
|
140
242
|
};
|
|
141
|
-
|
|
142
|
-
type: import('vue').PropType<
|
|
143
|
-
default:
|
|
243
|
+
videoAllowedType: {
|
|
244
|
+
type: import('vue').PropType<string[]>;
|
|
245
|
+
default: () => string[];
|
|
144
246
|
};
|
|
145
|
-
|
|
146
|
-
type: import('vue').PropType<
|
|
147
|
-
|
|
247
|
+
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
|
+
}>;
|
|
148
257
|
};
|
|
149
258
|
imageUploadHandle: {
|
|
150
259
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
@@ -176,21 +285,54 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
176
285
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
177
286
|
default: () => {};
|
|
178
287
|
};
|
|
288
|
+
imgPondOptions: {
|
|
289
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
290
|
+
};
|
|
179
291
|
}>>, {
|
|
180
292
|
input: (value: string) => void;
|
|
181
293
|
"update:modelValue": (value: string) => void;
|
|
182
294
|
}, {
|
|
183
|
-
value: string;
|
|
184
|
-
modelValue: string;
|
|
185
295
|
imageMaxSize: number;
|
|
186
|
-
imageAllowedType: string[];
|
|
187
296
|
imageAllowedMineType: string[];
|
|
188
297
|
imageMinWidth: number;
|
|
189
298
|
imageMinHeight: number;
|
|
190
299
|
imageMaxWidth: number;
|
|
191
300
|
imageMaxHeight: number;
|
|
301
|
+
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[];
|
|
192
310
|
options: Partial<RawEditorOptions>;
|
|
193
311
|
}, 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
|
+
};
|
|
194
336
|
value: {
|
|
195
337
|
type: import('vue').PropType<string>;
|
|
196
338
|
default: string;
|
|
@@ -205,33 +347,55 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
205
347
|
extParameters: {
|
|
206
348
|
type: import('vue').PropType<Record<string, any>>;
|
|
207
349
|
};
|
|
208
|
-
|
|
350
|
+
imageUploadMaxCount: {
|
|
209
351
|
type: import('vue').PropType<number>;
|
|
210
352
|
default: number;
|
|
211
353
|
};
|
|
354
|
+
imageUploadTip: {
|
|
355
|
+
type: import('vue').PropType<string>;
|
|
356
|
+
default: string;
|
|
357
|
+
};
|
|
212
358
|
imageAllowedType: {
|
|
213
359
|
type: import('vue').PropType<string[]>;
|
|
214
360
|
default: () => string[];
|
|
215
361
|
};
|
|
216
|
-
|
|
362
|
+
audioMaxSize: {
|
|
363
|
+
type: import('vue').PropType<number>;
|
|
364
|
+
default: number;
|
|
365
|
+
};
|
|
366
|
+
audioAllowedType: {
|
|
217
367
|
type: import('vue').PropType<string[]>;
|
|
218
368
|
default: () => string[];
|
|
219
369
|
};
|
|
220
|
-
|
|
221
|
-
type: import('vue').PropType<
|
|
222
|
-
|
|
370
|
+
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
|
+
}>;
|
|
223
380
|
};
|
|
224
|
-
|
|
381
|
+
videoMaxSize: {
|
|
225
382
|
type: import('vue').PropType<number>;
|
|
226
383
|
default: number;
|
|
227
384
|
};
|
|
228
|
-
|
|
229
|
-
type: import('vue').PropType<
|
|
230
|
-
default:
|
|
385
|
+
videoAllowedType: {
|
|
386
|
+
type: import('vue').PropType<string[]>;
|
|
387
|
+
default: () => string[];
|
|
231
388
|
};
|
|
232
|
-
|
|
233
|
-
type: import('vue').PropType<
|
|
234
|
-
|
|
389
|
+
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
|
+
}>;
|
|
235
399
|
};
|
|
236
400
|
imageUploadHandle: {
|
|
237
401
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
@@ -263,7 +427,34 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
263
427
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
264
428
|
default: () => {};
|
|
265
429
|
};
|
|
430
|
+
imgPondOptions: {
|
|
431
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
432
|
+
};
|
|
266
433
|
}>>> & 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
|
+
};
|
|
267
458
|
value: {
|
|
268
459
|
type: import('vue').PropType<string>;
|
|
269
460
|
default: string;
|
|
@@ -278,33 +469,55 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
278
469
|
extParameters: {
|
|
279
470
|
type: import('vue').PropType<Record<string, any>>;
|
|
280
471
|
};
|
|
281
|
-
|
|
472
|
+
imageUploadMaxCount: {
|
|
282
473
|
type: import('vue').PropType<number>;
|
|
283
474
|
default: number;
|
|
284
475
|
};
|
|
476
|
+
imageUploadTip: {
|
|
477
|
+
type: import('vue').PropType<string>;
|
|
478
|
+
default: string;
|
|
479
|
+
};
|
|
285
480
|
imageAllowedType: {
|
|
286
481
|
type: import('vue').PropType<string[]>;
|
|
287
482
|
default: () => string[];
|
|
288
483
|
};
|
|
289
|
-
|
|
484
|
+
audioMaxSize: {
|
|
485
|
+
type: import('vue').PropType<number>;
|
|
486
|
+
default: number;
|
|
487
|
+
};
|
|
488
|
+
audioAllowedType: {
|
|
290
489
|
type: import('vue').PropType<string[]>;
|
|
291
490
|
default: () => string[];
|
|
292
491
|
};
|
|
293
|
-
|
|
294
|
-
type: import('vue').PropType<
|
|
295
|
-
|
|
492
|
+
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
|
+
}>;
|
|
296
502
|
};
|
|
297
|
-
|
|
503
|
+
videoMaxSize: {
|
|
298
504
|
type: import('vue').PropType<number>;
|
|
299
505
|
default: number;
|
|
300
506
|
};
|
|
301
|
-
|
|
302
|
-
type: import('vue').PropType<
|
|
303
|
-
default:
|
|
507
|
+
videoAllowedType: {
|
|
508
|
+
type: import('vue').PropType<string[]>;
|
|
509
|
+
default: () => string[];
|
|
304
510
|
};
|
|
305
|
-
|
|
306
|
-
type: import('vue').PropType<
|
|
307
|
-
|
|
511
|
+
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
|
+
}>;
|
|
308
521
|
};
|
|
309
522
|
imageUploadHandle: {
|
|
310
523
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
@@ -336,7 +549,34 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
336
549
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
337
550
|
default: () => {};
|
|
338
551
|
};
|
|
552
|
+
imgPondOptions: {
|
|
553
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
554
|
+
};
|
|
339
555
|
}>>> & 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
|
+
};
|
|
340
580
|
value: {
|
|
341
581
|
type: import('vue').PropType<string>;
|
|
342
582
|
default: string;
|
|
@@ -351,33 +591,55 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
351
591
|
extParameters: {
|
|
352
592
|
type: import('vue').PropType<Record<string, any>>;
|
|
353
593
|
};
|
|
354
|
-
|
|
594
|
+
imageUploadMaxCount: {
|
|
355
595
|
type: import('vue').PropType<number>;
|
|
356
596
|
default: number;
|
|
357
597
|
};
|
|
598
|
+
imageUploadTip: {
|
|
599
|
+
type: import('vue').PropType<string>;
|
|
600
|
+
default: string;
|
|
601
|
+
};
|
|
358
602
|
imageAllowedType: {
|
|
359
603
|
type: import('vue').PropType<string[]>;
|
|
360
604
|
default: () => string[];
|
|
361
605
|
};
|
|
362
|
-
|
|
606
|
+
audioMaxSize: {
|
|
607
|
+
type: import('vue').PropType<number>;
|
|
608
|
+
default: number;
|
|
609
|
+
};
|
|
610
|
+
audioAllowedType: {
|
|
363
611
|
type: import('vue').PropType<string[]>;
|
|
364
612
|
default: () => string[];
|
|
365
613
|
};
|
|
366
|
-
|
|
367
|
-
type: import('vue').PropType<
|
|
368
|
-
|
|
614
|
+
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
|
+
}>;
|
|
369
624
|
};
|
|
370
|
-
|
|
625
|
+
videoMaxSize: {
|
|
371
626
|
type: import('vue').PropType<number>;
|
|
372
627
|
default: number;
|
|
373
628
|
};
|
|
374
|
-
|
|
375
|
-
type: import('vue').PropType<
|
|
376
|
-
default:
|
|
629
|
+
videoAllowedType: {
|
|
630
|
+
type: import('vue').PropType<string[]>;
|
|
631
|
+
default: () => string[];
|
|
377
632
|
};
|
|
378
|
-
|
|
379
|
-
type: import('vue').PropType<
|
|
380
|
-
|
|
633
|
+
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
|
+
}>;
|
|
381
643
|
};
|
|
382
644
|
imageUploadHandle: {
|
|
383
645
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
@@ -409,22 +671,55 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
409
671
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
410
672
|
default: () => {};
|
|
411
673
|
};
|
|
674
|
+
imgPondOptions: {
|
|
675
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
676
|
+
};
|
|
412
677
|
}>>, {}, {}, {}, {}, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {
|
|
413
678
|
input: (value: string) => void;
|
|
414
679
|
"update:modelValue": (value: string) => void;
|
|
415
680
|
}, string, {
|
|
416
|
-
value: string;
|
|
417
|
-
modelValue: string;
|
|
418
681
|
imageMaxSize: number;
|
|
419
|
-
imageAllowedType: string[];
|
|
420
682
|
imageAllowedMineType: string[];
|
|
421
683
|
imageMinWidth: number;
|
|
422
684
|
imageMinHeight: number;
|
|
423
685
|
imageMaxWidth: number;
|
|
424
686
|
imageMaxHeight: number;
|
|
687
|
+
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[];
|
|
425
696
|
options: Partial<RawEditorOptions>;
|
|
426
697
|
}> & {
|
|
427
698
|
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
|
+
};
|
|
428
723
|
value: {
|
|
429
724
|
type: import('vue').PropType<string>;
|
|
430
725
|
default: string;
|
|
@@ -439,33 +734,55 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
439
734
|
extParameters: {
|
|
440
735
|
type: import('vue').PropType<Record<string, any>>;
|
|
441
736
|
};
|
|
442
|
-
|
|
737
|
+
imageUploadMaxCount: {
|
|
443
738
|
type: import('vue').PropType<number>;
|
|
444
739
|
default: number;
|
|
445
740
|
};
|
|
741
|
+
imageUploadTip: {
|
|
742
|
+
type: import('vue').PropType<string>;
|
|
743
|
+
default: string;
|
|
744
|
+
};
|
|
446
745
|
imageAllowedType: {
|
|
447
746
|
type: import('vue').PropType<string[]>;
|
|
448
747
|
default: () => string[];
|
|
449
748
|
};
|
|
450
|
-
|
|
749
|
+
audioMaxSize: {
|
|
750
|
+
type: import('vue').PropType<number>;
|
|
751
|
+
default: number;
|
|
752
|
+
};
|
|
753
|
+
audioAllowedType: {
|
|
451
754
|
type: import('vue').PropType<string[]>;
|
|
452
755
|
default: () => string[];
|
|
453
756
|
};
|
|
454
|
-
|
|
455
|
-
type: import('vue').PropType<
|
|
456
|
-
|
|
757
|
+
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
|
+
}>;
|
|
457
767
|
};
|
|
458
|
-
|
|
768
|
+
videoMaxSize: {
|
|
459
769
|
type: import('vue').PropType<number>;
|
|
460
770
|
default: number;
|
|
461
771
|
};
|
|
462
|
-
|
|
463
|
-
type: import('vue').PropType<
|
|
464
|
-
default:
|
|
772
|
+
videoAllowedType: {
|
|
773
|
+
type: import('vue').PropType<string[]>;
|
|
774
|
+
default: () => string[];
|
|
465
775
|
};
|
|
466
|
-
|
|
467
|
-
type: import('vue').PropType<
|
|
468
|
-
|
|
776
|
+
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
|
+
}>;
|
|
469
786
|
};
|
|
470
787
|
imageUploadHandle: {
|
|
471
788
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
@@ -497,10 +814,14 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
497
814
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
498
815
|
default: () => {};
|
|
499
816
|
};
|
|
817
|
+
imgPondOptions: {
|
|
818
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
819
|
+
};
|
|
500
820
|
};
|
|
501
821
|
} & {
|
|
502
822
|
install: (app: any, options?: TinymceEditorGlobalOptions) => void;
|
|
503
823
|
};
|
|
504
824
|
export { TinymceEditor, globalProps, type TinymceEditorGlobalOptions };
|
|
505
825
|
export default TinymceEditor;
|
|
826
|
+
export * from './util';
|
|
506
827
|
export type {} from './components';
|