@keyblade/tinymce-editor-vue2 0.0.11 → 0.0.12-alpha.11
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 +161 -38
- package/es/editor.vue.d.ts +127 -3
- package/es/editor.vue.js +18 -11
- package/es/editor.vue2.js +332 -126
- package/es/index.d.ts +543 -86
- package/es/index.js +11 -6
- package/es/style.css +1 -1
- package/es/util.d.ts +41 -0
- package/es/util.js +77 -0
- package/package.json +6 -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,67 @@ 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?: (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
|
+
};
|
|
41
|
+
/** 视频上传选项 */
|
|
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
|
+
};
|
|
31
57
|
}
|
|
32
58
|
declare const globalProps: TinymceEditorGlobalOptions;
|
|
33
59
|
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
|
+
};
|
|
34
84
|
value: {
|
|
35
85
|
type: import('vue').PropType<string>;
|
|
36
86
|
default: string;
|
|
@@ -45,34 +95,76 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
45
95
|
extParameters: {
|
|
46
96
|
type: import('vue').PropType<Record<string, any>>;
|
|
47
97
|
};
|
|
48
|
-
|
|
98
|
+
imageUploadMaxCount: {
|
|
49
99
|
type: import('vue').PropType<number>;
|
|
50
100
|
default: number;
|
|
51
101
|
};
|
|
102
|
+
imageUploadTip: {
|
|
103
|
+
type: import('vue').PropType<string>;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
52
106
|
imageAllowedType: {
|
|
53
107
|
type: import('vue').PropType<string[]>;
|
|
54
108
|
default: () => string[];
|
|
55
109
|
};
|
|
56
|
-
|
|
57
|
-
type: import('vue').PropType<
|
|
58
|
-
default:
|
|
110
|
+
audioEnable: {
|
|
111
|
+
type: import('vue').PropType<boolean>;
|
|
112
|
+
default: boolean;
|
|
59
113
|
};
|
|
60
|
-
|
|
114
|
+
audioMaxSize: {
|
|
61
115
|
type: import('vue').PropType<number>;
|
|
62
116
|
default: number;
|
|
63
117
|
};
|
|
64
|
-
|
|
65
|
-
type: import('vue').PropType<
|
|
66
|
-
default:
|
|
118
|
+
audioAllowedType: {
|
|
119
|
+
type: import('vue').PropType<string[]>;
|
|
120
|
+
default: () => string[];
|
|
67
121
|
};
|
|
68
|
-
|
|
69
|
-
type: import('vue').PropType<
|
|
70
|
-
|
|
122
|
+
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;
|
|
71
142
|
};
|
|
72
|
-
|
|
143
|
+
videoMaxSize: {
|
|
73
144
|
type: import('vue').PropType<number>;
|
|
74
145
|
default: number;
|
|
75
146
|
};
|
|
147
|
+
videoAllowedType: {
|
|
148
|
+
type: import('vue').PropType<string[]>;
|
|
149
|
+
default: () => string[];
|
|
150
|
+
};
|
|
151
|
+
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
|
+
};
|
|
76
168
|
imageUploadHandle: {
|
|
77
169
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
78
170
|
extParameters?: Record<string, any> | undefined;
|
|
@@ -103,7 +195,34 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
103
195
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
104
196
|
default: () => {};
|
|
105
197
|
};
|
|
198
|
+
imgPondOptions: {
|
|
199
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
200
|
+
};
|
|
106
201
|
}>>, 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
|
+
};
|
|
107
226
|
value: {
|
|
108
227
|
type: import('vue').PropType<string>;
|
|
109
228
|
default: string;
|
|
@@ -118,34 +237,76 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
118
237
|
extParameters: {
|
|
119
238
|
type: import('vue').PropType<Record<string, any>>;
|
|
120
239
|
};
|
|
121
|
-
|
|
240
|
+
imageUploadMaxCount: {
|
|
122
241
|
type: import('vue').PropType<number>;
|
|
123
242
|
default: number;
|
|
124
243
|
};
|
|
244
|
+
imageUploadTip: {
|
|
245
|
+
type: import('vue').PropType<string>;
|
|
246
|
+
default: string;
|
|
247
|
+
};
|
|
125
248
|
imageAllowedType: {
|
|
126
249
|
type: import('vue').PropType<string[]>;
|
|
127
250
|
default: () => string[];
|
|
128
251
|
};
|
|
129
|
-
|
|
130
|
-
type: import('vue').PropType<
|
|
131
|
-
default:
|
|
252
|
+
audioEnable: {
|
|
253
|
+
type: import('vue').PropType<boolean>;
|
|
254
|
+
default: boolean;
|
|
132
255
|
};
|
|
133
|
-
|
|
256
|
+
audioMaxSize: {
|
|
134
257
|
type: import('vue').PropType<number>;
|
|
135
258
|
default: number;
|
|
136
259
|
};
|
|
137
|
-
|
|
138
|
-
type: import('vue').PropType<
|
|
139
|
-
default:
|
|
260
|
+
audioAllowedType: {
|
|
261
|
+
type: import('vue').PropType<string[]>;
|
|
262
|
+
default: () => string[];
|
|
140
263
|
};
|
|
141
|
-
|
|
142
|
-
type: import('vue').PropType<
|
|
143
|
-
|
|
264
|
+
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;
|
|
144
284
|
};
|
|
145
|
-
|
|
285
|
+
videoMaxSize: {
|
|
146
286
|
type: import('vue').PropType<number>;
|
|
147
287
|
default: number;
|
|
148
288
|
};
|
|
289
|
+
videoAllowedType: {
|
|
290
|
+
type: import('vue').PropType<string[]>;
|
|
291
|
+
default: () => string[];
|
|
292
|
+
};
|
|
293
|
+
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
|
+
};
|
|
149
310
|
imageUploadHandle: {
|
|
150
311
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
151
312
|
extParameters?: Record<string, any> | undefined;
|
|
@@ -176,21 +337,56 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
176
337
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
177
338
|
default: () => {};
|
|
178
339
|
};
|
|
340
|
+
imgPondOptions: {
|
|
341
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
342
|
+
};
|
|
179
343
|
}>>, {
|
|
180
344
|
input: (value: string) => void;
|
|
181
345
|
"update:modelValue": (value: string) => void;
|
|
182
346
|
}, {
|
|
183
|
-
value: string;
|
|
184
|
-
modelValue: string;
|
|
185
347
|
imageMaxSize: number;
|
|
186
|
-
imageAllowedType: string[];
|
|
187
348
|
imageAllowedMineType: string[];
|
|
188
349
|
imageMinWidth: number;
|
|
189
350
|
imageMinHeight: number;
|
|
190
351
|
imageMaxWidth: number;
|
|
191
352
|
imageMaxHeight: number;
|
|
353
|
+
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[];
|
|
192
364
|
options: Partial<RawEditorOptions>;
|
|
193
365
|
}, 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
|
+
};
|
|
194
390
|
value: {
|
|
195
391
|
type: import('vue').PropType<string>;
|
|
196
392
|
default: string;
|
|
@@ -205,34 +401,76 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
205
401
|
extParameters: {
|
|
206
402
|
type: import('vue').PropType<Record<string, any>>;
|
|
207
403
|
};
|
|
208
|
-
|
|
404
|
+
imageUploadMaxCount: {
|
|
209
405
|
type: import('vue').PropType<number>;
|
|
210
406
|
default: number;
|
|
211
407
|
};
|
|
408
|
+
imageUploadTip: {
|
|
409
|
+
type: import('vue').PropType<string>;
|
|
410
|
+
default: string;
|
|
411
|
+
};
|
|
212
412
|
imageAllowedType: {
|
|
213
413
|
type: import('vue').PropType<string[]>;
|
|
214
414
|
default: () => string[];
|
|
215
415
|
};
|
|
216
|
-
|
|
217
|
-
type: import('vue').PropType<
|
|
218
|
-
default:
|
|
416
|
+
audioEnable: {
|
|
417
|
+
type: import('vue').PropType<boolean>;
|
|
418
|
+
default: boolean;
|
|
219
419
|
};
|
|
220
|
-
|
|
420
|
+
audioMaxSize: {
|
|
221
421
|
type: import('vue').PropType<number>;
|
|
222
422
|
default: number;
|
|
223
423
|
};
|
|
224
|
-
|
|
225
|
-
type: import('vue').PropType<
|
|
226
|
-
default:
|
|
424
|
+
audioAllowedType: {
|
|
425
|
+
type: import('vue').PropType<string[]>;
|
|
426
|
+
default: () => string[];
|
|
227
427
|
};
|
|
228
|
-
|
|
229
|
-
type: import('vue').PropType<
|
|
230
|
-
|
|
428
|
+
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;
|
|
231
448
|
};
|
|
232
|
-
|
|
449
|
+
videoMaxSize: {
|
|
233
450
|
type: import('vue').PropType<number>;
|
|
234
451
|
default: number;
|
|
235
452
|
};
|
|
453
|
+
videoAllowedType: {
|
|
454
|
+
type: import('vue').PropType<string[]>;
|
|
455
|
+
default: () => string[];
|
|
456
|
+
};
|
|
457
|
+
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
|
+
};
|
|
236
474
|
imageUploadHandle: {
|
|
237
475
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
238
476
|
extParameters?: Record<string, any> | undefined;
|
|
@@ -263,7 +501,34 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
263
501
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
264
502
|
default: () => {};
|
|
265
503
|
};
|
|
504
|
+
imgPondOptions: {
|
|
505
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
506
|
+
};
|
|
266
507
|
}>>> & 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
|
+
};
|
|
267
532
|
value: {
|
|
268
533
|
type: import('vue').PropType<string>;
|
|
269
534
|
default: string;
|
|
@@ -278,34 +543,76 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
278
543
|
extParameters: {
|
|
279
544
|
type: import('vue').PropType<Record<string, any>>;
|
|
280
545
|
};
|
|
281
|
-
|
|
546
|
+
imageUploadMaxCount: {
|
|
282
547
|
type: import('vue').PropType<number>;
|
|
283
548
|
default: number;
|
|
284
549
|
};
|
|
550
|
+
imageUploadTip: {
|
|
551
|
+
type: import('vue').PropType<string>;
|
|
552
|
+
default: string;
|
|
553
|
+
};
|
|
285
554
|
imageAllowedType: {
|
|
286
555
|
type: import('vue').PropType<string[]>;
|
|
287
556
|
default: () => string[];
|
|
288
557
|
};
|
|
289
|
-
|
|
290
|
-
type: import('vue').PropType<
|
|
291
|
-
default:
|
|
558
|
+
audioEnable: {
|
|
559
|
+
type: import('vue').PropType<boolean>;
|
|
560
|
+
default: boolean;
|
|
292
561
|
};
|
|
293
|
-
|
|
562
|
+
audioMaxSize: {
|
|
294
563
|
type: import('vue').PropType<number>;
|
|
295
564
|
default: number;
|
|
296
565
|
};
|
|
297
|
-
|
|
298
|
-
type: import('vue').PropType<
|
|
299
|
-
default:
|
|
566
|
+
audioAllowedType: {
|
|
567
|
+
type: import('vue').PropType<string[]>;
|
|
568
|
+
default: () => string[];
|
|
300
569
|
};
|
|
301
|
-
|
|
302
|
-
type: import('vue').PropType<
|
|
303
|
-
|
|
570
|
+
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;
|
|
304
590
|
};
|
|
305
|
-
|
|
591
|
+
videoMaxSize: {
|
|
306
592
|
type: import('vue').PropType<number>;
|
|
307
593
|
default: number;
|
|
308
594
|
};
|
|
595
|
+
videoAllowedType: {
|
|
596
|
+
type: import('vue').PropType<string[]>;
|
|
597
|
+
default: () => string[];
|
|
598
|
+
};
|
|
599
|
+
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
|
+
};
|
|
309
616
|
imageUploadHandle: {
|
|
310
617
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
311
618
|
extParameters?: Record<string, any> | undefined;
|
|
@@ -336,7 +643,34 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
336
643
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
337
644
|
default: () => {};
|
|
338
645
|
};
|
|
646
|
+
imgPondOptions: {
|
|
647
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
648
|
+
};
|
|
339
649
|
}>>> & 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
|
+
};
|
|
340
674
|
value: {
|
|
341
675
|
type: import('vue').PropType<string>;
|
|
342
676
|
default: string;
|
|
@@ -351,34 +685,76 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
351
685
|
extParameters: {
|
|
352
686
|
type: import('vue').PropType<Record<string, any>>;
|
|
353
687
|
};
|
|
354
|
-
|
|
688
|
+
imageUploadMaxCount: {
|
|
355
689
|
type: import('vue').PropType<number>;
|
|
356
690
|
default: number;
|
|
357
691
|
};
|
|
692
|
+
imageUploadTip: {
|
|
693
|
+
type: import('vue').PropType<string>;
|
|
694
|
+
default: string;
|
|
695
|
+
};
|
|
358
696
|
imageAllowedType: {
|
|
359
697
|
type: import('vue').PropType<string[]>;
|
|
360
698
|
default: () => string[];
|
|
361
699
|
};
|
|
362
|
-
|
|
363
|
-
type: import('vue').PropType<
|
|
364
|
-
default:
|
|
700
|
+
audioEnable: {
|
|
701
|
+
type: import('vue').PropType<boolean>;
|
|
702
|
+
default: boolean;
|
|
365
703
|
};
|
|
366
|
-
|
|
704
|
+
audioMaxSize: {
|
|
367
705
|
type: import('vue').PropType<number>;
|
|
368
706
|
default: number;
|
|
369
707
|
};
|
|
370
|
-
|
|
371
|
-
type: import('vue').PropType<
|
|
372
|
-
default:
|
|
708
|
+
audioAllowedType: {
|
|
709
|
+
type: import('vue').PropType<string[]>;
|
|
710
|
+
default: () => string[];
|
|
373
711
|
};
|
|
374
|
-
|
|
375
|
-
type: import('vue').PropType<
|
|
376
|
-
|
|
712
|
+
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;
|
|
377
732
|
};
|
|
378
|
-
|
|
733
|
+
videoMaxSize: {
|
|
379
734
|
type: import('vue').PropType<number>;
|
|
380
735
|
default: number;
|
|
381
736
|
};
|
|
737
|
+
videoAllowedType: {
|
|
738
|
+
type: import('vue').PropType<string[]>;
|
|
739
|
+
default: () => string[];
|
|
740
|
+
};
|
|
741
|
+
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
|
+
};
|
|
382
758
|
imageUploadHandle: {
|
|
383
759
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
384
760
|
extParameters?: Record<string, any> | undefined;
|
|
@@ -409,22 +785,57 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
409
785
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
410
786
|
default: () => {};
|
|
411
787
|
};
|
|
788
|
+
imgPondOptions: {
|
|
789
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
790
|
+
};
|
|
412
791
|
}>>, {}, {}, {}, {}, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {
|
|
413
792
|
input: (value: string) => void;
|
|
414
793
|
"update:modelValue": (value: string) => void;
|
|
415
794
|
}, string, {
|
|
416
|
-
value: string;
|
|
417
|
-
modelValue: string;
|
|
418
795
|
imageMaxSize: number;
|
|
419
|
-
imageAllowedType: string[];
|
|
420
796
|
imageAllowedMineType: string[];
|
|
421
797
|
imageMinWidth: number;
|
|
422
798
|
imageMinHeight: number;
|
|
423
799
|
imageMaxWidth: number;
|
|
424
800
|
imageMaxHeight: number;
|
|
801
|
+
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[];
|
|
425
812
|
options: Partial<RawEditorOptions>;
|
|
426
813
|
}> & {
|
|
427
814
|
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
|
+
};
|
|
428
839
|
value: {
|
|
429
840
|
type: import('vue').PropType<string>;
|
|
430
841
|
default: string;
|
|
@@ -439,34 +850,76 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
439
850
|
extParameters: {
|
|
440
851
|
type: import('vue').PropType<Record<string, any>>;
|
|
441
852
|
};
|
|
442
|
-
|
|
853
|
+
imageUploadMaxCount: {
|
|
443
854
|
type: import('vue').PropType<number>;
|
|
444
855
|
default: number;
|
|
445
856
|
};
|
|
857
|
+
imageUploadTip: {
|
|
858
|
+
type: import('vue').PropType<string>;
|
|
859
|
+
default: string;
|
|
860
|
+
};
|
|
446
861
|
imageAllowedType: {
|
|
447
862
|
type: import('vue').PropType<string[]>;
|
|
448
863
|
default: () => string[];
|
|
449
864
|
};
|
|
450
|
-
|
|
451
|
-
type: import('vue').PropType<
|
|
452
|
-
default:
|
|
865
|
+
audioEnable: {
|
|
866
|
+
type: import('vue').PropType<boolean>;
|
|
867
|
+
default: boolean;
|
|
453
868
|
};
|
|
454
|
-
|
|
869
|
+
audioMaxSize: {
|
|
455
870
|
type: import('vue').PropType<number>;
|
|
456
871
|
default: number;
|
|
457
872
|
};
|
|
458
|
-
|
|
459
|
-
type: import('vue').PropType<
|
|
460
|
-
default:
|
|
873
|
+
audioAllowedType: {
|
|
874
|
+
type: import('vue').PropType<string[]>;
|
|
875
|
+
default: () => string[];
|
|
461
876
|
};
|
|
462
|
-
|
|
463
|
-
type: import('vue').PropType<
|
|
464
|
-
|
|
877
|
+
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
|
+
}>;
|
|
465
893
|
};
|
|
466
|
-
|
|
894
|
+
videoEnable: {
|
|
895
|
+
type: import('vue').PropType<boolean>;
|
|
896
|
+
default: boolean;
|
|
897
|
+
};
|
|
898
|
+
videoMaxSize: {
|
|
467
899
|
type: import('vue').PropType<number>;
|
|
468
900
|
default: number;
|
|
469
901
|
};
|
|
902
|
+
videoAllowedType: {
|
|
903
|
+
type: import('vue').PropType<string[]>;
|
|
904
|
+
default: () => string[];
|
|
905
|
+
};
|
|
906
|
+
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
|
+
};
|
|
470
923
|
imageUploadHandle: {
|
|
471
924
|
type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
|
|
472
925
|
extParameters?: Record<string, any> | undefined;
|
|
@@ -497,10 +950,14 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
497
950
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
498
951
|
default: () => {};
|
|
499
952
|
};
|
|
953
|
+
imgPondOptions: {
|
|
954
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
955
|
+
};
|
|
500
956
|
};
|
|
501
957
|
} & {
|
|
502
958
|
install: (app: any, options?: TinymceEditorGlobalOptions) => void;
|
|
503
959
|
};
|
|
504
960
|
export { TinymceEditor, globalProps, type TinymceEditorGlobalOptions };
|
|
505
961
|
export default TinymceEditor;
|
|
962
|
+
export * from './util';
|
|
506
963
|
export type {} from './components';
|