@keyblade/tinymce-editor-vue2 0.0.12-alpha.22 → 0.0.12-alpha.23
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 +2 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,11 +33,6 @@ Vue.use(ImgPond, {})
|
|
|
33
33
|
Vue.use(TinymceEditor, {
|
|
34
34
|
imageUploadOptions: {
|
|
35
35
|
handleRequest: (file: File | Blob, filename: string, parameters: { extParameters: Record<string, any> }) => {
|
|
36
|
-
const form = new FormData()
|
|
37
|
-
form.append('file', file, filename)
|
|
38
|
-
postRequest('/api/man/uploadFile/uploadSingleFile', form).then((res) => {
|
|
39
|
-
console.log(res)
|
|
40
|
-
})
|
|
41
36
|
return new Promise((resolve) => {
|
|
42
37
|
setTimeout(() => {
|
|
43
38
|
resolve({
|
|
@@ -61,7 +56,6 @@ Vue.use(TinymceEditor, {
|
|
|
61
56
|
return {}
|
|
62
57
|
},
|
|
63
58
|
handlerResponse: (response: any) => {
|
|
64
|
-
debugger
|
|
65
59
|
return { url: response.data, errorMessage: response.msg }
|
|
66
60
|
}
|
|
67
61
|
},
|
|
@@ -75,9 +69,7 @@ Vue.use(TinymceEditor, {
|
|
|
75
69
|
}
|
|
76
70
|
},
|
|
77
71
|
data: (parameters: { file: File | Blob, extParameters: Record<string, any> }) => {
|
|
78
|
-
return {
|
|
79
|
-
a: '1'
|
|
80
|
-
}
|
|
72
|
+
return {}
|
|
81
73
|
},
|
|
82
74
|
handlerResponse: (response: any) => {
|
|
83
75
|
return { url: response.data, errorMessage: response.msg }
|
|
@@ -142,6 +134,7 @@ interface ComponentOptions {
|
|
|
142
134
|
|
|
143
135
|
/** 图片上传选项 */
|
|
144
136
|
imageUploadOptions?: ImageUploadOptions;
|
|
137
|
+
|
|
145
138
|
/** imgPond选项 */
|
|
146
139
|
imgPondOptions?: Record<string, any>;
|
|
147
140
|
|
|
@@ -167,8 +160,6 @@ export interface ImageUploadOptions {
|
|
|
167
160
|
maxSize?: number;
|
|
168
161
|
/** 图片允许的后缀类型(小写,如: png、jpg) */
|
|
169
162
|
allowedType?: string[];
|
|
170
|
-
// /** 图片允许的类型(如: image/png、image/jpg) */
|
|
171
|
-
// allowedMineType?: string[];
|
|
172
163
|
/** 图片最小宽度 */
|
|
173
164
|
minWidth?: number;
|
|
174
165
|
/** 图片最小高度 */
|
package/package.json
CHANGED