@keyblade/tinymce-editor-vue2 0.0.12-alpha.4 → 0.0.12-alpha.6
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 +110 -26
- package/es/editor.vue.d.ts +14 -0
- package/es/editor.vue2.js +10 -8
- package/es/index.d.ts +52 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# tinymce 富文本编辑器
|
|
2
|
-
|
|
2
|
+
tinymce编辑器
|
|
3
|
+
|
|
4
|
+
## 零、前提
|
|
5
|
+
必须将vue 版本升级至2.7+
|
|
6
|
+
|
|
7
|
+
- 升级指南:https://v2.cn.vuejs.org/v2/guide/migration-vue-2-7.html
|
|
8
|
+
|
|
9
|
+
一般来说只需要升级 vue、及 @vue/cli-xxx 版本即可
|
|
3
10
|
|
|
4
11
|
## 一、安装
|
|
5
12
|
```shell
|
|
6
13
|
yarn add @keyblade/tinymce-editor-vue2
|
|
14
|
+
# 下面两个第三方依赖注意版本,必须匹配,否则css样式有问题
|
|
7
15
|
yarn add pic-viewer@0.5.1 (如项目中有,怎不需要再次安装)
|
|
8
16
|
yarn add imgpond@0.6.2 (如项目中有,怎不需要再次安装)
|
|
9
17
|
```
|
|
@@ -25,14 +33,42 @@ Vue.use(PicViewer, {})
|
|
|
25
33
|
Vue.use(ImgPond, {})
|
|
26
34
|
|
|
27
35
|
Vue.use(TinymceEditor, {
|
|
28
|
-
|
|
29
|
-
|
|
36
|
+
imageUploadHandle: (file, filename) => {
|
|
37
|
+
// const form = new FormData()
|
|
38
|
+
// form.append('file', file, filename)
|
|
39
|
+
// postRequest('/api/man/uploadFile/uploadSingleFile', form).then((res) => {
|
|
40
|
+
// debugger
|
|
41
|
+
// })
|
|
30
42
|
return new Promise((resolve) => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
43
|
+
setTimeout(() => {
|
|
44
|
+
resolve({
|
|
45
|
+
success: true,
|
|
46
|
+
url: 'https://object.gcongo.com.cn/onecode-travel/nonClassic/8cefe379c03b5f39cd8ef725293a3c02/2024/5/1715995588295/d0b5bb458b694130be0c63e2f1d0090b.png'
|
|
47
|
+
})
|
|
48
|
+
}, 1000)
|
|
35
49
|
})
|
|
50
|
+
},
|
|
51
|
+
// 音频
|
|
52
|
+
audioUploadOptions: {
|
|
53
|
+
action: 'https://qt.gcongo.com.cn/msg/file/upload',
|
|
54
|
+
headers: {
|
|
55
|
+
Appkey: 'dsy_2AeyG8N0CqEC',
|
|
56
|
+
Authorization: 'Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJOelF4WW1jeU5qUmtabU5tTlRWaU9UUTZaREV6WkdOa1l6TXpZemt5WmpSbE16RXhNVEkyTVRJek9VeGJSRUpSTWpBPTlZNjNYN1dVRzNPQiIsImlzcyI6ImRlMjdkNDAzNzNiZjY3NGJkYTUyN2E5Yzg4NjliZTI1Iiwic3ViIjoiQVBQIiwiYXVkIjoiZHN5X1FPTXF2R0haU1MyZCIsImlhdCI6MTcxNjE5NDc4MSwiZXhwIjoxNzE2Nzk5NTgxfQ.krM-HWCvR-PLa6dcup6RGthxpST1pFrHN9cngyK89lU'
|
|
57
|
+
},
|
|
58
|
+
handlerResponse: (response) => {
|
|
59
|
+
return { url: response.data, errorMessage: response.msg }
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
// 视频
|
|
63
|
+
videoUploadOptions: {
|
|
64
|
+
action: 'https://qt.gcongo.com.cn/msg/file/upload',
|
|
65
|
+
headers: {
|
|
66
|
+
Appkey: 'dsy_2AeyG8N0CqEC',
|
|
67
|
+
Authorization: 'Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJOelF4WW1jeU5qUmtabU5tTlRWaU9UUTZaREV6WkdOa1l6TXpZemt5WmpSbE16RXhNVEkyTVRJek9VeGJSRUpSTWpBPTlZNjNYN1dVRzNPQiIsImlzcyI6ImRlMjdkNDAzNzNiZjY3NGJkYTUyN2E5Yzg4NjliZTI1Iiwic3ViIjoiQVBQIiwiYXVkIjoiZHN5X1FPTXF2R0haU1MyZCIsImlhdCI6MTcxNjE5NDc4MSwiZXhwIjoxNzE2Nzk5NTgxfQ.krM-HWCvR-PLa6dcup6RGthxpST1pFrHN9cngyK89lU'
|
|
68
|
+
},
|
|
69
|
+
handlerResponse: (response) => {
|
|
70
|
+
return { url: response.data, errorMessage: response.msg }
|
|
71
|
+
}
|
|
36
72
|
}
|
|
37
73
|
})
|
|
38
74
|
```
|
|
@@ -40,14 +76,13 @@ Vue.use(TinymceEditor, {
|
|
|
40
76
|
### 2.使用组件
|
|
41
77
|
```text
|
|
42
78
|
<template>
|
|
43
|
-
<
|
|
79
|
+
<KbTinymceEditor
|
|
44
80
|
v-model="text"
|
|
45
81
|
/>
|
|
46
82
|
</template>
|
|
47
83
|
|
|
48
84
|
<script setup lang="ts">
|
|
49
85
|
import { onMounted, ref } from 'vue'
|
|
50
|
-
import TinymceEditor from '@keyblade/tinymce-editor-vue2'
|
|
51
86
|
|
|
52
87
|
const text = ref<string>('')
|
|
53
88
|
|
|
@@ -57,21 +92,18 @@ onMounted(() => {
|
|
|
57
92
|
</script>
|
|
58
93
|
```
|
|
59
94
|
|
|
95
|
+
### 3.使用工具类(单独使用图片上传组件的,可使用这两个工具类自行处理)
|
|
96
|
+
```typescript
|
|
97
|
+
import { oneTravelImageCheck, oneTravelImageCompressor } from '@keyblade/tinymce-editor-vue2'
|
|
98
|
+
|
|
99
|
+
// oneTravelImageCheck: 一码游图片检测工具
|
|
100
|
+
// oneTravelImageCompressor: 一码游图片压缩工具
|
|
101
|
+
```
|
|
102
|
+
|
|
60
103
|
## 三、Api
|
|
61
104
|
### 1.全局属性
|
|
62
105
|
```typescript
|
|
63
106
|
interface TinymceEditorGlobalOptions {
|
|
64
|
-
// 消息方法实例
|
|
65
|
-
message?: {
|
|
66
|
-
// 加载中
|
|
67
|
-
loading?: (message?: string) => { close: () => void }
|
|
68
|
-
// 成功
|
|
69
|
-
success?: (message?: string) => void
|
|
70
|
-
// 错误提示
|
|
71
|
-
error?: (message?: string) => void
|
|
72
|
-
// 销毁
|
|
73
|
-
destroy?: () => void
|
|
74
|
-
}
|
|
75
107
|
/** 图片上传请求处理,需要返回图片地址 */
|
|
76
108
|
imageUploadHandle?: (file: File | Blob, filename: string, options?: {
|
|
77
109
|
extParameters?: Record<string, any>
|
|
@@ -86,8 +118,23 @@ interface TinymceEditorGlobalOptions {
|
|
|
86
118
|
node: HTMLElement;
|
|
87
119
|
readonly internal: boolean;
|
|
88
120
|
}) => void;
|
|
89
|
-
|
|
90
|
-
|
|
121
|
+
tinymceOptions?: RawEditorOptions;
|
|
122
|
+
/** imgPond 选项 */
|
|
123
|
+
imgPondOptions?: Record<string, any>
|
|
124
|
+
/** 音频上传选项 */
|
|
125
|
+
audioUploadOptions?: {
|
|
126
|
+
action: string;
|
|
127
|
+
handlerResponse: (response: any) => { url?: string; errorMessage?: string }
|
|
128
|
+
headers?: Record<string, any>;
|
|
129
|
+
data?: Record<string, any>;
|
|
130
|
+
},
|
|
131
|
+
/** 视频上传选项 */
|
|
132
|
+
videoUploadOptions?: {
|
|
133
|
+
action: string;
|
|
134
|
+
handlerResponse: (response: any) => { url?: string; errorMessage?: string }
|
|
135
|
+
headers?: Record<string, any>;
|
|
136
|
+
data?: Record<string, any>;
|
|
137
|
+
}
|
|
91
138
|
}
|
|
92
139
|
```
|
|
93
140
|
|
|
@@ -97,9 +144,15 @@ interface ComponentProps {
|
|
|
97
144
|
/** vue2 v-model */
|
|
98
145
|
value?: string
|
|
99
146
|
/** vue3 v-model */
|
|
100
|
-
modelValue?: string
|
|
147
|
+
modelValue?: string;
|
|
101
148
|
/** 是否禁止编辑 */
|
|
102
149
|
disabled?: boolean;
|
|
150
|
+
/** 额外参数 */
|
|
151
|
+
extParameters?: Record<string, any>,
|
|
152
|
+
/** 图片上传组件最大数量 */
|
|
153
|
+
imageUploadMaxCount?: number;
|
|
154
|
+
/** 图片上传提示 */
|
|
155
|
+
imageUploadTip?: string;
|
|
103
156
|
/** 图片最大值(单位M,主要用于错误提示) */
|
|
104
157
|
imageMaxSize?: number;
|
|
105
158
|
/** 图片允许的类型 */
|
|
@@ -114,8 +167,36 @@ interface ComponentProps {
|
|
|
114
167
|
imageMaxWidth?: number;
|
|
115
168
|
/** 图片最大高度 */
|
|
116
169
|
imageMaxHeight?: number;
|
|
170
|
+
/** 是否开启音频 */
|
|
171
|
+
audioEnable?: boolean
|
|
172
|
+
/** 音频最大尺寸(M) */
|
|
173
|
+
audioMaxSize?: number;
|
|
174
|
+
/** 音频结尾格式 */
|
|
175
|
+
audioAllowedType?: string[];
|
|
176
|
+
/** 音频上传选项 */
|
|
177
|
+
audioUploadOptions?: {
|
|
178
|
+
action: string;
|
|
179
|
+
handlerResponse: (response: any) => { url?: string; errorMessage?: string }
|
|
180
|
+
headers?: Record<string, any>;
|
|
181
|
+
data?: Record<string, any>;
|
|
182
|
+
},
|
|
183
|
+
/** 是否开启视频 */
|
|
184
|
+
videoEnable?: boolean
|
|
185
|
+
/** 视频最大尺寸(M) */
|
|
186
|
+
videoMaxSize?: number;
|
|
187
|
+
/** 视频结尾格式 */
|
|
188
|
+
videoAllowedType?: string[];
|
|
189
|
+
/** 视频上传选项 */
|
|
190
|
+
videoUploadOptions?: {
|
|
191
|
+
action: string;
|
|
192
|
+
handlerResponse: (response: any) => { url?: string; errorMessage?: string }
|
|
193
|
+
headers?: Record<string, any>;
|
|
194
|
+
data?: Record<string, any>;
|
|
195
|
+
}
|
|
117
196
|
/** 图片上传请求处理,需要返回图片地址 */
|
|
118
|
-
imageUploadHandle?: (file: File | Blob, filename: string
|
|
197
|
+
imageUploadHandle?: (file: File | Blob, filename: string, options?: {
|
|
198
|
+
extParameters?: Record<string, any>
|
|
199
|
+
}) => Promise<{success: boolean; url?: string; errorMessage?: string}>;
|
|
119
200
|
/** 接着默认配置进行处理 */
|
|
120
201
|
paste_preprocess?: (editor: Editor, args: {
|
|
121
202
|
content: string;
|
|
@@ -128,7 +209,10 @@ interface ComponentProps {
|
|
|
128
209
|
}) => void;
|
|
129
210
|
/** 初始化完成 */
|
|
130
211
|
initComplete?: (params: { editorIns: Editor }) => void,
|
|
131
|
-
/**
|
|
212
|
+
/** 富文本编辑器选项 */
|
|
132
213
|
options?: Partial<RawEditorOptions>
|
|
214
|
+
/** imgPond 选项 */
|
|
215
|
+
imgPondOptions?: Record<string, any>
|
|
133
216
|
}
|
|
134
|
-
```
|
|
217
|
+
```
|
|
218
|
+
|
package/es/editor.vue.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
27
27
|
imageMaxWidth?: number | undefined;
|
|
28
28
|
/** 图片最大高度 */
|
|
29
29
|
imageMaxHeight?: number | undefined;
|
|
30
|
+
/** 是否开启音频 */
|
|
31
|
+
audioEnable?: boolean | undefined;
|
|
30
32
|
/** 音频最大尺寸(M) */
|
|
31
33
|
audioMaxSize?: number | undefined;
|
|
32
34
|
/** 音频结尾格式 */
|
|
@@ -41,6 +43,8 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
41
43
|
headers?: Record<string, any> | undefined;
|
|
42
44
|
data?: Record<string, any> | undefined;
|
|
43
45
|
} | undefined;
|
|
46
|
+
/** 是否开启视频 */
|
|
47
|
+
videoEnable?: boolean | undefined;
|
|
44
48
|
/** 视频最大尺寸(M) */
|
|
45
49
|
videoMaxSize?: number | undefined;
|
|
46
50
|
/** 视频结尾格式 */
|
|
@@ -93,6 +97,8 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
93
97
|
imageMinHeight: number;
|
|
94
98
|
imageMaxWidth: number;
|
|
95
99
|
imageMaxHeight: number;
|
|
100
|
+
audioEnable: boolean;
|
|
101
|
+
videoEnable: boolean;
|
|
96
102
|
audioMaxSize: number;
|
|
97
103
|
videoMaxSize: number;
|
|
98
104
|
audioAllowedType: () => string[];
|
|
@@ -128,6 +134,8 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
128
134
|
imageMaxWidth?: number | undefined;
|
|
129
135
|
/** 图片最大高度 */
|
|
130
136
|
imageMaxHeight?: number | undefined;
|
|
137
|
+
/** 是否开启音频 */
|
|
138
|
+
audioEnable?: boolean | undefined;
|
|
131
139
|
/** 音频最大尺寸(M) */
|
|
132
140
|
audioMaxSize?: number | undefined;
|
|
133
141
|
/** 音频结尾格式 */
|
|
@@ -142,6 +150,8 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
142
150
|
headers?: Record<string, any> | undefined;
|
|
143
151
|
data?: Record<string, any> | undefined;
|
|
144
152
|
} | undefined;
|
|
153
|
+
/** 是否开启视频 */
|
|
154
|
+
videoEnable?: boolean | undefined;
|
|
145
155
|
/** 视频最大尺寸(M) */
|
|
146
156
|
videoMaxSize?: number | undefined;
|
|
147
157
|
/** 视频结尾格式 */
|
|
@@ -194,6 +204,8 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
194
204
|
imageMinHeight: number;
|
|
195
205
|
imageMaxWidth: number;
|
|
196
206
|
imageMaxHeight: number;
|
|
207
|
+
audioEnable: boolean;
|
|
208
|
+
videoEnable: boolean;
|
|
197
209
|
audioMaxSize: number;
|
|
198
210
|
videoMaxSize: number;
|
|
199
211
|
audioAllowedType: () => string[];
|
|
@@ -211,8 +223,10 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
211
223
|
imageUploadMaxCount: number;
|
|
212
224
|
imageUploadTip: string;
|
|
213
225
|
imageAllowedType: string[];
|
|
226
|
+
audioEnable: boolean;
|
|
214
227
|
audioMaxSize: number;
|
|
215
228
|
audioAllowedType: string[];
|
|
229
|
+
videoEnable: boolean;
|
|
216
230
|
videoMaxSize: number;
|
|
217
231
|
videoAllowedType: string[];
|
|
218
232
|
options: Partial<RawEditorOptions>;
|
package/es/editor.vue2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as ne, ref as u, computed as y, onMounted as re, onUnmounted as se, watch as
|
|
2
|
-
import { oneTravelImageCheck as B, oneTravelImageCompressor as
|
|
1
|
+
import { defineComponent as ne, ref as u, computed as y, onMounted as re, onUnmounted as se, watch as E } from "vue";
|
|
2
|
+
import { oneTravelImageCheck as B, oneTravelImageCompressor as O, getImagePixel as me } from "./util.js";
|
|
3
3
|
import de from "imgpond";
|
|
4
4
|
import { conclude as M } from "vue-global-config";
|
|
5
5
|
import I from "tinymce";
|
|
@@ -50,9 +50,11 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
50
50
|
imageMinHeight: { default: 60 },
|
|
51
51
|
imageMaxWidth: { default: 6e3 },
|
|
52
52
|
imageMaxHeight: { default: 6e3 },
|
|
53
|
+
audioEnable: { type: Boolean, default: !0 },
|
|
53
54
|
audioMaxSize: { default: 200 },
|
|
54
55
|
audioAllowedType: { default: () => ["MP3", "M4A", "WAV", "AAC"] },
|
|
55
56
|
audioUploadOptions: null,
|
|
57
|
+
videoEnable: { type: Boolean, default: !0 },
|
|
56
58
|
videoMaxSize: { default: 300 },
|
|
57
59
|
videoAllowedType: { default: () => ["MP4", "3GP"] },
|
|
58
60
|
videoUploadOptions: null,
|
|
@@ -145,7 +147,7 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
145
147
|
});
|
|
146
148
|
return;
|
|
147
149
|
}
|
|
148
|
-
const l = await
|
|
150
|
+
const l = await O(t);
|
|
149
151
|
if (!l.success) {
|
|
150
152
|
e(), setTimeout(() => {
|
|
151
153
|
n.onError(l.errorMessage);
|
|
@@ -304,7 +306,7 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
304
306
|
if ((H = p.error) != null && H.pixel)
|
|
305
307
|
return i({ message: `请上传像素不低于${a.imageMinWidth}*${a.imageMinHeight}且像素不高于${a.imageMaxWidth}*${a.imageMaxHeight}的图片`, remove: !0 });
|
|
306
308
|
}
|
|
307
|
-
const g = await
|
|
309
|
+
const g = await O(s);
|
|
308
310
|
if (!g.success)
|
|
309
311
|
return l == null || l.close(), i({ message: g == null ? void 0 : g.errorMessage, remove: !0 });
|
|
310
312
|
if (!c.value)
|
|
@@ -326,7 +328,7 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
326
328
|
e && (e.innerHTML = a.imageUploadTip || "上传");
|
|
327
329
|
});
|
|
328
330
|
}
|
|
329
|
-
}), o.ui.registry.addMenuItem("localAudio", {
|
|
331
|
+
}), a.audioEnable && o.ui.registry.addMenuItem("localAudio", {
|
|
330
332
|
text: "音频",
|
|
331
333
|
icon: "arrow-right",
|
|
332
334
|
onAction: () => {
|
|
@@ -336,7 +338,7 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
336
338
|
e && (e.innerHTML = a.imageUploadTip || "上传");
|
|
337
339
|
});
|
|
338
340
|
}
|
|
339
|
-
}), o.ui.registry.addMenuItem("localVideo", {
|
|
341
|
+
}), a.videoEnable && o.ui.registry.addMenuItem("localVideo", {
|
|
340
342
|
text: "视频",
|
|
341
343
|
icon: "embed",
|
|
342
344
|
onAction: () => {
|
|
@@ -410,10 +412,10 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
410
412
|
return se(() => {
|
|
411
413
|
var t;
|
|
412
414
|
(t = m.value) == null || t.destroy();
|
|
413
|
-
}),
|
|
415
|
+
}), E(() => [a.disabled, m.value], () => {
|
|
414
416
|
var t, n;
|
|
415
417
|
(n = (t = m.value) == null ? void 0 : t.mode) == null || n.set(a.disabled ? "readonly" : "design");
|
|
416
|
-
}, { immediate: !0 }),
|
|
418
|
+
}, { immediate: !0 }), E(
|
|
417
419
|
() => [a.value, a.modelValue, m.value],
|
|
418
420
|
() => {
|
|
419
421
|
var t;
|
package/es/index.d.ts
CHANGED
|
@@ -95,6 +95,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
95
95
|
type: import('vue').PropType<string[]>;
|
|
96
96
|
default: () => string[];
|
|
97
97
|
};
|
|
98
|
+
audioEnable: {
|
|
99
|
+
type: import('vue').PropType<boolean>;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
98
102
|
audioMaxSize: {
|
|
99
103
|
type: import('vue').PropType<number>;
|
|
100
104
|
default: number;
|
|
@@ -114,6 +118,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
114
118
|
data?: Record<string, any> | undefined;
|
|
115
119
|
}>;
|
|
116
120
|
};
|
|
121
|
+
videoEnable: {
|
|
122
|
+
type: import('vue').PropType<boolean>;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
117
125
|
videoMaxSize: {
|
|
118
126
|
type: import('vue').PropType<number>;
|
|
119
127
|
default: number;
|
|
@@ -217,6 +225,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
217
225
|
type: import('vue').PropType<string[]>;
|
|
218
226
|
default: () => string[];
|
|
219
227
|
};
|
|
228
|
+
audioEnable: {
|
|
229
|
+
type: import('vue').PropType<boolean>;
|
|
230
|
+
default: boolean;
|
|
231
|
+
};
|
|
220
232
|
audioMaxSize: {
|
|
221
233
|
type: import('vue').PropType<number>;
|
|
222
234
|
default: number;
|
|
@@ -236,6 +248,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
236
248
|
data?: Record<string, any> | undefined;
|
|
237
249
|
}>;
|
|
238
250
|
};
|
|
251
|
+
videoEnable: {
|
|
252
|
+
type: import('vue').PropType<boolean>;
|
|
253
|
+
default: boolean;
|
|
254
|
+
};
|
|
239
255
|
videoMaxSize: {
|
|
240
256
|
type: import('vue').PropType<number>;
|
|
241
257
|
default: number;
|
|
@@ -303,8 +319,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
303
319
|
imageUploadMaxCount: number;
|
|
304
320
|
imageUploadTip: string;
|
|
305
321
|
imageAllowedType: string[];
|
|
322
|
+
audioEnable: boolean;
|
|
306
323
|
audioMaxSize: number;
|
|
307
324
|
audioAllowedType: string[];
|
|
325
|
+
videoEnable: boolean;
|
|
308
326
|
videoMaxSize: number;
|
|
309
327
|
videoAllowedType: string[];
|
|
310
328
|
options: Partial<RawEditorOptions>;
|
|
@@ -359,6 +377,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
359
377
|
type: import('vue').PropType<string[]>;
|
|
360
378
|
default: () => string[];
|
|
361
379
|
};
|
|
380
|
+
audioEnable: {
|
|
381
|
+
type: import('vue').PropType<boolean>;
|
|
382
|
+
default: boolean;
|
|
383
|
+
};
|
|
362
384
|
audioMaxSize: {
|
|
363
385
|
type: import('vue').PropType<number>;
|
|
364
386
|
default: number;
|
|
@@ -378,6 +400,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
378
400
|
data?: Record<string, any> | undefined;
|
|
379
401
|
}>;
|
|
380
402
|
};
|
|
403
|
+
videoEnable: {
|
|
404
|
+
type: import('vue').PropType<boolean>;
|
|
405
|
+
default: boolean;
|
|
406
|
+
};
|
|
381
407
|
videoMaxSize: {
|
|
382
408
|
type: import('vue').PropType<number>;
|
|
383
409
|
default: number;
|
|
@@ -481,6 +507,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
481
507
|
type: import('vue').PropType<string[]>;
|
|
482
508
|
default: () => string[];
|
|
483
509
|
};
|
|
510
|
+
audioEnable: {
|
|
511
|
+
type: import('vue').PropType<boolean>;
|
|
512
|
+
default: boolean;
|
|
513
|
+
};
|
|
484
514
|
audioMaxSize: {
|
|
485
515
|
type: import('vue').PropType<number>;
|
|
486
516
|
default: number;
|
|
@@ -500,6 +530,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
500
530
|
data?: Record<string, any> | undefined;
|
|
501
531
|
}>;
|
|
502
532
|
};
|
|
533
|
+
videoEnable: {
|
|
534
|
+
type: import('vue').PropType<boolean>;
|
|
535
|
+
default: boolean;
|
|
536
|
+
};
|
|
503
537
|
videoMaxSize: {
|
|
504
538
|
type: import('vue').PropType<number>;
|
|
505
539
|
default: number;
|
|
@@ -603,6 +637,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
603
637
|
type: import('vue').PropType<string[]>;
|
|
604
638
|
default: () => string[];
|
|
605
639
|
};
|
|
640
|
+
audioEnable: {
|
|
641
|
+
type: import('vue').PropType<boolean>;
|
|
642
|
+
default: boolean;
|
|
643
|
+
};
|
|
606
644
|
audioMaxSize: {
|
|
607
645
|
type: import('vue').PropType<number>;
|
|
608
646
|
default: number;
|
|
@@ -622,6 +660,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
622
660
|
data?: Record<string, any> | undefined;
|
|
623
661
|
}>;
|
|
624
662
|
};
|
|
663
|
+
videoEnable: {
|
|
664
|
+
type: import('vue').PropType<boolean>;
|
|
665
|
+
default: boolean;
|
|
666
|
+
};
|
|
625
667
|
videoMaxSize: {
|
|
626
668
|
type: import('vue').PropType<number>;
|
|
627
669
|
default: number;
|
|
@@ -689,8 +731,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
689
731
|
imageUploadMaxCount: number;
|
|
690
732
|
imageUploadTip: string;
|
|
691
733
|
imageAllowedType: string[];
|
|
734
|
+
audioEnable: boolean;
|
|
692
735
|
audioMaxSize: number;
|
|
693
736
|
audioAllowedType: string[];
|
|
737
|
+
videoEnable: boolean;
|
|
694
738
|
videoMaxSize: number;
|
|
695
739
|
videoAllowedType: string[];
|
|
696
740
|
options: Partial<RawEditorOptions>;
|
|
@@ -746,6 +790,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
746
790
|
type: import('vue').PropType<string[]>;
|
|
747
791
|
default: () => string[];
|
|
748
792
|
};
|
|
793
|
+
audioEnable: {
|
|
794
|
+
type: import('vue').PropType<boolean>;
|
|
795
|
+
default: boolean;
|
|
796
|
+
};
|
|
749
797
|
audioMaxSize: {
|
|
750
798
|
type: import('vue').PropType<number>;
|
|
751
799
|
default: number;
|
|
@@ -765,6 +813,10 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
765
813
|
data?: Record<string, any> | undefined;
|
|
766
814
|
}>;
|
|
767
815
|
};
|
|
816
|
+
videoEnable: {
|
|
817
|
+
type: import('vue').PropType<boolean>;
|
|
818
|
+
default: boolean;
|
|
819
|
+
};
|
|
768
820
|
videoMaxSize: {
|
|
769
821
|
type: import('vue').PropType<number>;
|
|
770
822
|
default: number;
|
package/package.json
CHANGED