@keyblade/tinymce-editor-vue2 0.0.12-alpha.49 → 0.0.12-alpha.51
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/editor.vue2.js +218 -312
- package/es/style.css +1 -1
- package/package.json +2 -2
package/es/editor.vue2.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _e, ref as w, computed as C, watch as V, onMounted as De, onUnmounted as Ae } from "vue";
|
|
2
2
|
import { oneTravelImgPondBeforeAddFile as K, oneTravelImageCompressor as Q, oneTravelImageCheckAndTransform as Te } from "@keyblade/one-travel";
|
|
3
|
-
import { blobToFile as Y,
|
|
3
|
+
import { blobToFile as Y, getImagePixel as Ce, getFileExtension as Pe } from "./util.js";
|
|
4
4
|
import "./style.less.js";
|
|
5
|
-
import
|
|
6
|
-
import { conclude as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import Se from "imgpond";
|
|
6
|
+
import { conclude as P } from "vue-global-config";
|
|
7
|
+
import Z from "tinymce";
|
|
8
|
+
import Me from "./langs/zh_CN.js";
|
|
9
9
|
import "tinymce/skins/ui/oxide/skin";
|
|
10
10
|
import "tinymce/models/dom";
|
|
11
11
|
import "tinymce/themes/silver";
|
|
@@ -34,9 +34,9 @@ import "tinymce/plugins/table";
|
|
|
34
34
|
import "tinymce/plugins/visualblocks";
|
|
35
35
|
import "tinymce/plugins/visualchars";
|
|
36
36
|
import "tinymce/plugins/wordcount";
|
|
37
|
-
import { globalProps as
|
|
38
|
-
import { Message as
|
|
39
|
-
const va = /* @__PURE__ */
|
|
37
|
+
import { globalProps as S } from "./index.js";
|
|
38
|
+
import { Message as p } from "element-ui";
|
|
39
|
+
const va = /* @__PURE__ */ _e({
|
|
40
40
|
__name: "editor",
|
|
41
41
|
props: {
|
|
42
42
|
value: { default: "" },
|
|
@@ -50,9 +50,9 @@ const va = /* @__PURE__ */ De({
|
|
|
50
50
|
initComplete: null
|
|
51
51
|
},
|
|
52
52
|
emits: ["input"],
|
|
53
|
-
setup(
|
|
54
|
-
const
|
|
55
|
-
|
|
53
|
+
setup(ee, { emit: M }) {
|
|
54
|
+
const d = ee;
|
|
55
|
+
Z.addI18n("zh_CN", Me);
|
|
56
56
|
const B = {
|
|
57
57
|
maxCount: 10,
|
|
58
58
|
tipText: "上传",
|
|
@@ -67,70 +67,70 @@ const va = /* @__PURE__ */ De({
|
|
|
67
67
|
maxSize: 300,
|
|
68
68
|
allowedType: ["mp4", "3gp"],
|
|
69
69
|
accept: "video/mp4,video/3gpp"
|
|
70
|
-
},
|
|
70
|
+
}, E = {
|
|
71
71
|
enable: !0,
|
|
72
72
|
maxSize: 200,
|
|
73
73
|
allowedType: ["mp3", "m4a", "wav", "aac"],
|
|
74
74
|
accept: "audio/mp3,audio/wav,audio/aac,audio/x-m4a"
|
|
75
|
-
},
|
|
75
|
+
}, $ = w(), g = w(), U = w(!1), k = w(!1), _ = w({
|
|
76
76
|
show: !1,
|
|
77
77
|
text: "图片上传中,请稍等"
|
|
78
|
-
}),
|
|
78
|
+
}), s = C(() => P([d.imageUploadOptions, S.imageUploadOptions, B]) || {}), c = C(() => P([d.videoUploadOptions, S.videoUploadOptions, j]) || {}), x = C(() => P([d.audioUploadOptions, S.audioUploadOptions, E]) || {}), H = C(() => P([d.imgPondOptions, S.imgPondOptions]) || {}), ae = C(() => {
|
|
79
79
|
var e, a;
|
|
80
|
-
return ((a = (e =
|
|
81
|
-
}), I =
|
|
82
|
-
|
|
80
|
+
return ((a = (e = s == null ? void 0 : s.value) == null ? void 0 : e.allowedType) == null ? void 0 : a.map((o) => `.${o}`).join(",")) || "";
|
|
81
|
+
}), I = w();
|
|
82
|
+
V(() => I.value, () => {
|
|
83
83
|
I.value && K(I.value, {
|
|
84
84
|
onStart: () => {
|
|
85
|
-
|
|
85
|
+
_.value = {
|
|
86
86
|
show: !0,
|
|
87
87
|
text: "图片加载中,请稍等"
|
|
88
88
|
};
|
|
89
89
|
},
|
|
90
90
|
onSuccess: () => {
|
|
91
|
-
|
|
91
|
+
_.value.show = !1;
|
|
92
92
|
},
|
|
93
93
|
onError: (e) => {
|
|
94
|
-
|
|
94
|
+
_.value.show = !1, p.error({ message: e, customClass: "tinymce-editor-message", duration: 2e4 });
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
}, { immediate: !0 });
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
const z = w();
|
|
99
|
+
V(() => z.value, () => {
|
|
100
|
+
z.value && K(z.value, {
|
|
101
101
|
onStart: () => {
|
|
102
|
-
|
|
102
|
+
_.value = {
|
|
103
103
|
show: !0,
|
|
104
104
|
text: "图片加载中,请稍等"
|
|
105
105
|
};
|
|
106
106
|
},
|
|
107
107
|
onSuccess: () => {
|
|
108
|
-
|
|
108
|
+
_.value.show = !1;
|
|
109
109
|
},
|
|
110
110
|
onError: (e) => {
|
|
111
|
-
|
|
111
|
+
_.value.show = !1, p.error(e);
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
}, { immediate: !0 });
|
|
115
|
-
const A =
|
|
115
|
+
const A = w({
|
|
116
116
|
dialogVisible: !1,
|
|
117
117
|
formData: {
|
|
118
118
|
images: []
|
|
119
119
|
}
|
|
120
|
-
}),
|
|
121
|
-
A.value.dialogVisible = !1, A.value.formData = {
|
|
120
|
+
}), F = w(), R = () => {
|
|
121
|
+
T = [], A.value.dialogVisible = !1, A.value.formData = {
|
|
122
122
|
images: []
|
|
123
123
|
};
|
|
124
|
-
},
|
|
124
|
+
}, oe = () => {
|
|
125
125
|
var e;
|
|
126
|
-
(e =
|
|
126
|
+
T = [], (e = F.value) == null || e.validate((a) => {
|
|
127
127
|
a && (A.value.formData.images.forEach((o) => {
|
|
128
|
-
var
|
|
128
|
+
var i;
|
|
129
129
|
let t = o;
|
|
130
|
-
H.value.srcAt && (t = (o == null ? void 0 : o[H.value.srcAt]) || ""), (
|
|
130
|
+
H.value.srcAt && (t = (o == null ? void 0 : o[H.value.srcAt]) || ""), (i = g.value) == null || i.insertContent(`<img src=${t} alt="" />`);
|
|
131
131
|
}), R());
|
|
132
132
|
});
|
|
133
|
-
},
|
|
133
|
+
}, h = w({
|
|
134
134
|
dialogVisible: !1,
|
|
135
135
|
formData: {
|
|
136
136
|
// 名称
|
|
@@ -142,19 +142,19 @@ const va = /* @__PURE__ */ De({
|
|
|
142
142
|
},
|
|
143
143
|
// 用于临时保存上传前的参数 { file: File }
|
|
144
144
|
additionalData: {}
|
|
145
|
-
}),
|
|
146
|
-
|
|
145
|
+
}), W = w(), N = () => {
|
|
146
|
+
h.value.dialogVisible = !1, h.value.formData = {
|
|
147
147
|
name: "",
|
|
148
148
|
cover: [],
|
|
149
149
|
file: []
|
|
150
|
-
},
|
|
151
|
-
},
|
|
150
|
+
}, h.value.additionalData = {};
|
|
151
|
+
}, te = () => {
|
|
152
152
|
var e;
|
|
153
|
-
(e =
|
|
153
|
+
(e = W.value) == null || e.validate((a) => {
|
|
154
154
|
var o, t;
|
|
155
|
-
a && ((t =
|
|
155
|
+
a && ((t = g.value) == null || t.insertContent(`<audio controls controlslist="nodownload noplaybackrate" data-name="${h.value.formData.name}" data-poster="${h.value.formData.cover[0]}" src="${(o = h.value.formData.file[0]) == null ? void 0 : o.url}"></audio>`), N());
|
|
156
156
|
});
|
|
157
|
-
},
|
|
157
|
+
}, b = w({
|
|
158
158
|
dialogVisible: !1,
|
|
159
159
|
formData: {
|
|
160
160
|
// 文件
|
|
@@ -162,175 +162,156 @@ const va = /* @__PURE__ */ De({
|
|
|
162
162
|
},
|
|
163
163
|
// 用于临时保存上传前的参数 { file: File }
|
|
164
164
|
additionalData: {}
|
|
165
|
-
}), O =
|
|
166
|
-
|
|
165
|
+
}), O = w(), L = () => {
|
|
166
|
+
b.value.dialogVisible = !1, b.value.formData = {
|
|
167
167
|
file: []
|
|
168
|
-
},
|
|
169
|
-
},
|
|
168
|
+
}, b.value.additionalData = {};
|
|
169
|
+
}, ie = () => {
|
|
170
170
|
var e;
|
|
171
171
|
(e = O.value) == null || e.validate((a) => {
|
|
172
172
|
var o, t;
|
|
173
|
-
a && ((t =
|
|
173
|
+
a && ((t = g.value) == null || t.insertContent(`<video width="auto" height="auto" controls src="${(o = b.value.formData.file[0]) == null ? void 0 : o.url}"></video>`), L());
|
|
174
174
|
});
|
|
175
175
|
}, re = () => {
|
|
176
176
|
document.querySelectorAll(".swal2-container .swal2-title").forEach((e) => {
|
|
177
|
-
e && (e.innerHTML = `单次最多可选择${
|
|
177
|
+
e && (e.innerHTML = `单次最多可选择${s.value.maxCount}张图片`);
|
|
178
178
|
});
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
};
|
|
180
|
+
let T = [];
|
|
181
|
+
const le = (e, a) => new Promise(async (o, t) => {
|
|
182
|
+
var m, n;
|
|
183
|
+
if (T.find((l) => (l == null ? void 0 : l.uid) === (e == null ? void 0 : e.uid)))
|
|
184
|
+
return setTimeout(() => {
|
|
185
|
+
document.querySelectorAll(".swal2-container").forEach((l) => {
|
|
186
|
+
l == null || l.remove();
|
|
187
|
+
});
|
|
188
|
+
}), t("");
|
|
189
|
+
T.push(e);
|
|
190
|
+
const r = await Q(e);
|
|
191
|
+
if (!r.success) {
|
|
183
192
|
t(), setTimeout(() => {
|
|
184
|
-
a.onError(
|
|
193
|
+
a.onError(r.errorMessage);
|
|
185
194
|
});
|
|
186
195
|
return;
|
|
187
196
|
}
|
|
188
|
-
const
|
|
189
|
-
if (!
|
|
197
|
+
const u = await ((n = (m = s.value).handleRequest) == null ? void 0 : n.call(m, Y(r.file, e.name), e.name, { extParameters: d.extParameters }));
|
|
198
|
+
if (!u || !(u != null && u.success)) {
|
|
190
199
|
t(), setTimeout(() => {
|
|
191
|
-
a.onError(
|
|
200
|
+
a.onError(u == null ? void 0 : u.errorMessage);
|
|
192
201
|
});
|
|
193
202
|
return;
|
|
194
203
|
}
|
|
195
|
-
o(
|
|
204
|
+
o(u.url);
|
|
196
205
|
});
|
|
197
|
-
async function ue(e, a) {
|
|
198
|
-
const t = a.node.getElementsByTagName("img"), l = [];
|
|
199
|
-
for (let i = t.length - 1; i >= 0; i--) {
|
|
200
|
-
const d = t[i], n = "img-" + Pe();
|
|
201
|
-
d.classList.add(n), l.push(n);
|
|
202
|
-
}
|
|
203
|
-
setTimeout(async () => {
|
|
204
|
-
var i, d;
|
|
205
|
-
for (let n = l.length - 1; n >= 0; n--) {
|
|
206
|
-
const u = e.dom.select(`.${l[n]}`);
|
|
207
|
-
if (u.length === 0)
|
|
208
|
-
continue;
|
|
209
|
-
const s = u[0], p = s.src;
|
|
210
|
-
if (p.startsWith("data:image")) {
|
|
211
|
-
e.dom.remove(s);
|
|
212
|
-
continue;
|
|
213
|
-
} else if (p.startsWith("http://") || p.startsWith("https://")) {
|
|
214
|
-
const b = await Z(p);
|
|
215
|
-
if (b && (b.width < (r.value.minWidth || 0) && b.height < (r.value.minHeight || 0) || b.width > (r.value.maxWidth || 0) && b.height > (r.value.maxHeight || 0))) {
|
|
216
|
-
e.dom.remove(s);
|
|
217
|
-
continue;
|
|
218
|
-
}
|
|
219
|
-
const W = ee(p);
|
|
220
|
-
if (!((d = (i = r.value) == null ? void 0 : i.allowedType) != null && d.includes(W.toLowerCase()))) {
|
|
221
|
-
e.dom.remove(s);
|
|
222
|
-
continue;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
206
|
async function G(e) {
|
|
229
|
-
var
|
|
207
|
+
var u, m, n;
|
|
230
208
|
let a = e;
|
|
231
|
-
if (!((
|
|
232
|
-
|
|
209
|
+
if (!((u = s.value) != null && u.handleRequest)) {
|
|
210
|
+
p.error("缺少图片上传配置");
|
|
233
211
|
return;
|
|
234
212
|
}
|
|
235
|
-
v.value = {
|
|
236
|
-
show: !0,
|
|
237
|
-
text: "图片上传中,请稍等"
|
|
238
|
-
};
|
|
239
213
|
let o = a.name ? a.name : "";
|
|
240
214
|
if (!(a != null && a.name) && !(a != null && a.lastModified) && a.type === "image/png") {
|
|
241
|
-
|
|
215
|
+
p.error("不允许粘贴");
|
|
242
216
|
return;
|
|
243
217
|
}
|
|
244
218
|
const t = await Te(a, o, {
|
|
245
|
-
imageMaxSize:
|
|
246
|
-
imageAllowedType:
|
|
219
|
+
imageMaxSize: s.value.maxSize,
|
|
220
|
+
imageAllowedType: s.value.allowedType,
|
|
247
221
|
// imageAllowedMineType: mergeImageUploadOptions.value.allowedMineType,
|
|
248
|
-
imageMinWidth:
|
|
249
|
-
imageMinHeight:
|
|
250
|
-
imageMaxWidth:
|
|
251
|
-
imageMaxHeight:
|
|
222
|
+
imageMinWidth: s.value.minWidth,
|
|
223
|
+
imageMinHeight: s.value.minHeight,
|
|
224
|
+
imageMaxWidth: s.value.maxWidth,
|
|
225
|
+
imageMaxHeight: s.value.maxHeight
|
|
252
226
|
});
|
|
253
227
|
if (!t.success) {
|
|
254
|
-
|
|
228
|
+
p.error((t == null ? void 0 : t.errorMessage) || "");
|
|
255
229
|
return;
|
|
256
230
|
}
|
|
257
231
|
if (t.hasTransform) {
|
|
258
232
|
a = t.file;
|
|
259
|
-
const
|
|
260
|
-
|
|
233
|
+
const l = o == null ? void 0 : o.split(".");
|
|
234
|
+
l.pop(), o = `${l.join(",")}.jpg`;
|
|
261
235
|
}
|
|
262
|
-
const
|
|
263
|
-
if (!
|
|
264
|
-
|
|
236
|
+
const i = await Q(a);
|
|
237
|
+
if (!i.success) {
|
|
238
|
+
p.error((i == null ? void 0 : i.errorMessage) || "压缩失败");
|
|
265
239
|
return;
|
|
266
240
|
}
|
|
267
|
-
const
|
|
268
|
-
if (!
|
|
269
|
-
|
|
241
|
+
const r = await ((n = (m = s.value).handleRequest) == null ? void 0 : n.call(m, Y(i.file, o), o, { extParameters: d.extParameters }));
|
|
242
|
+
if (!r || !r.success) {
|
|
243
|
+
p.error((r == null ? void 0 : r.errorMessage) || "");
|
|
270
244
|
return;
|
|
271
245
|
}
|
|
272
|
-
return
|
|
246
|
+
return r.url;
|
|
273
247
|
}
|
|
274
|
-
const
|
|
275
|
-
var
|
|
276
|
-
const a =
|
|
248
|
+
const q = async (e) => {
|
|
249
|
+
var r, u, m;
|
|
250
|
+
const a = g.value, o = e.types;
|
|
277
251
|
if (o.includes("text/html")) {
|
|
278
|
-
const n = e.getData("text/html"),
|
|
279
|
-
|
|
252
|
+
const n = e.getData("text/html"), f = new DOMParser().parseFromString(n, "text/html"), D = Array.from(f.body.querySelectorAll("img")), we = Array.from(f.body.querySelectorAll("audio")), be = Array.from(f.body.querySelectorAll("video"));
|
|
253
|
+
D.length > 0 && (_.value = {
|
|
280
254
|
show: !0,
|
|
281
255
|
text: "图片加载中,请稍等"
|
|
282
256
|
});
|
|
283
|
-
for (const
|
|
284
|
-
|
|
285
|
-
for await (const
|
|
286
|
-
if (
|
|
287
|
-
if ((
|
|
288
|
-
const
|
|
289
|
-
|
|
257
|
+
for (const y of [...we, ...be])
|
|
258
|
+
y == null || y.remove();
|
|
259
|
+
for await (const y of [...D])
|
|
260
|
+
if (y.removeAttribute("crossorigin"), y.src.startsWith("http"))
|
|
261
|
+
if ((r = s.value) != null && r.handleRequestByUrl) {
|
|
262
|
+
const v = await ((u = s.value) == null ? void 0 : u.handleRequestByUrl(y.src, { extParameters: d.extParameters }));
|
|
263
|
+
v != null && v.success && (v != null && v.url) ? y.src = v == null ? void 0 : v.url : y.remove();
|
|
290
264
|
} else {
|
|
291
|
-
const
|
|
292
|
-
|
|
265
|
+
const v = await Ce(y.src);
|
|
266
|
+
v && (v.width < (s.value.minWidth || 0) && v.height < (s.value.minHeight || 0) || v.width > (s.value.maxWidth || 0) && v.height > (s.value.maxHeight || 0)) && y.remove();
|
|
293
267
|
}
|
|
294
268
|
else
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
const
|
|
298
|
-
a.insertContent(
|
|
269
|
+
y.remove(), p.error("不支持Word中批量复制图片或视频,请改为单个复制,或者从工具栏中手动插入上传");
|
|
270
|
+
_.value.show = !1;
|
|
271
|
+
const ye = new XMLSerializer().serializeToString(f.body);
|
|
272
|
+
a.insertContent(ye);
|
|
299
273
|
} else
|
|
300
274
|
o.includes("text/plain") && a.insertContent(e.getData("text/plain"));
|
|
301
|
-
const t = Array.from(e.
|
|
302
|
-
for
|
|
303
|
-
|
|
304
|
-
if (!u)
|
|
275
|
+
const t = Array.from((e == null ? void 0 : e.files) || []), i = [];
|
|
276
|
+
for (const n of t) {
|
|
277
|
+
if (!n)
|
|
305
278
|
continue;
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
279
|
+
const l = Pe(n.name);
|
|
280
|
+
n.type.indexOf("image") > -1 || (m = s.value.allowedType) != null && m.includes(l.toLowerCase()) ? i.push(n) : p.error("暂不支持的文件类型");
|
|
281
|
+
}
|
|
282
|
+
if (i.length > 0) {
|
|
283
|
+
_.value = {
|
|
284
|
+
show: !0,
|
|
285
|
+
text: "图片上传中,请稍等"
|
|
286
|
+
};
|
|
287
|
+
for await (const n of i) {
|
|
288
|
+
const l = await G(n);
|
|
289
|
+
if (l) {
|
|
290
|
+
const f = `<img src="${l}" alt="" />`;
|
|
291
|
+
a.insertContent(f);
|
|
312
292
|
}
|
|
313
293
|
}
|
|
294
|
+
_.value.show = !1;
|
|
314
295
|
}
|
|
315
296
|
M("input", a.getContent());
|
|
316
297
|
}, X = (e) => {
|
|
317
298
|
var o;
|
|
318
299
|
e.preventDefault();
|
|
319
300
|
const a = e.clipboardData || ((o = e == null ? void 0 : e.originalEvent) == null ? void 0 : o.clipboardData);
|
|
320
|
-
|
|
301
|
+
q(a);
|
|
321
302
|
}, J = (e) => {
|
|
322
303
|
var o;
|
|
323
304
|
e.preventDefault();
|
|
324
305
|
const a = e.dataTransfer || ((o = e == null ? void 0 : e.originalEvent) == null ? void 0 : o.dataTransfer);
|
|
325
|
-
|
|
306
|
+
q(a);
|
|
326
307
|
};
|
|
327
|
-
|
|
308
|
+
De(() => {
|
|
328
309
|
var o;
|
|
329
310
|
const e = {
|
|
330
311
|
// 设置语言
|
|
331
312
|
language: "zh_CN",
|
|
332
313
|
// 实例
|
|
333
|
-
target:
|
|
314
|
+
target: $.value,
|
|
334
315
|
// 隐藏品牌
|
|
335
316
|
branding: !1,
|
|
336
317
|
// 隐藏右上角升级按钮
|
|
@@ -408,241 +389,166 @@ const va = /* @__PURE__ */ De({
|
|
|
408
389
|
convert_urls: !1,
|
|
409
390
|
paste_webkit_styles: "all",
|
|
410
391
|
paste_data_images: !1,
|
|
411
|
-
images_file_types: ((o =
|
|
392
|
+
images_file_types: ((o = s.value.allowedType) == null ? void 0 : o.join(",")) || "jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",
|
|
412
393
|
// 粘贴前处理
|
|
413
|
-
paste_preprocess(t,
|
|
414
|
-
|
|
394
|
+
paste_preprocess(t, i) {
|
|
395
|
+
i == null || i.preventDefault();
|
|
415
396
|
},
|
|
416
|
-
// // 粘贴后处理(处理异步操作)
|
|
417
|
-
// paste_postprocess(editor, args) {
|
|
418
|
-
// // 处理图片
|
|
419
|
-
// processPastedImage(editor, args)
|
|
420
|
-
// },
|
|
421
|
-
// images_upload_handler(blobInfo) {
|
|
422
|
-
// // eslint-disable-next-line no-async-promise-executor
|
|
423
|
-
// return new Promise(async (resolve, reject) => {
|
|
424
|
-
// // 校验图片配置
|
|
425
|
-
// if (!mergeImageUploadOptions.value?.handleRequest) {
|
|
426
|
-
// removeNotification()
|
|
427
|
-
// return reject({ message: '缺少图片上传配置', remove: true })
|
|
428
|
-
// }
|
|
429
|
-
//
|
|
430
|
-
// uploadLoadingConfig.value = {
|
|
431
|
-
// show: true,
|
|
432
|
-
// text: '图片上传中,请稍等'
|
|
433
|
-
// }
|
|
434
|
-
//
|
|
435
|
-
// // 获取文件 blob 数据
|
|
436
|
-
// // 1.从本地复制图片都是 File 对象,chrome 复制非图片文件,都是 blob,且为 png
|
|
437
|
-
// let file = blobInfo.blob()
|
|
438
|
-
// // 有名称,则取真实名称
|
|
439
|
-
// let filename = (file as File).name ? (file as File).name : blobInfo.filename()
|
|
440
|
-
// if (!(file as File)?.name && !(file as File)?.lastModified && file.type === 'image/png') {// chrome 复制非图片格式
|
|
441
|
-
// uploadLoadingConfig.value.show = false
|
|
442
|
-
// removeNotification()
|
|
443
|
-
// return reject({ message: '不允许粘贴', remove: true })
|
|
444
|
-
// }
|
|
445
|
-
//
|
|
446
|
-
// // 图片校验
|
|
447
|
-
// const checkRes = await oneTravelImageCheckAndTransform(file, filename, {
|
|
448
|
-
// imageMaxSize: mergeImageUploadOptions.value.maxSize,
|
|
449
|
-
// imageAllowedType: mergeImageUploadOptions.value.allowedType,
|
|
450
|
-
// imageMinWidth: mergeImageUploadOptions.value.minWidth,
|
|
451
|
-
// imageMinHeight: mergeImageUploadOptions.value.minHeight,
|
|
452
|
-
// imageMaxWidth: mergeImageUploadOptions.value.maxWidth,
|
|
453
|
-
// imageMaxHeight: mergeImageUploadOptions.value.maxHeight
|
|
454
|
-
// })
|
|
455
|
-
// if (!checkRes.success) {
|
|
456
|
-
// uploadLoadingConfig.value.show = false
|
|
457
|
-
// removeNotification()
|
|
458
|
-
// return reject({ message: checkRes?.errorMessage || '', remove: true })
|
|
459
|
-
// }
|
|
460
|
-
// if (checkRes.hasTransform) {// 被转换
|
|
461
|
-
// // 修改文件
|
|
462
|
-
// file = checkRes.file!
|
|
463
|
-
//
|
|
464
|
-
// // 修改名称
|
|
465
|
-
// const arr = filename?.split('.')
|
|
466
|
-
// arr.pop()
|
|
467
|
-
// const prefix = arr.join(',')
|
|
468
|
-
// filename = `${prefix}.jpg`
|
|
469
|
-
// }
|
|
470
|
-
//
|
|
471
|
-
// // 图片压缩
|
|
472
|
-
// const compressorRes = await oneTravelImageCompressor(file)
|
|
473
|
-
// if (!compressorRes.success) {
|
|
474
|
-
// uploadLoadingConfig.value.show = false
|
|
475
|
-
// removeNotification()
|
|
476
|
-
// return reject({ message: compressorRes?.errorMessage, remove: true })
|
|
477
|
-
// }
|
|
478
|
-
//
|
|
479
|
-
// // 上传图片
|
|
480
|
-
// const uploadRes = await mergeImageUploadOptions.value.handleRequest?.(blobToFile(compressorRes.file, filename), filename, { extParameters: props.extParameters })
|
|
481
|
-
// if (!uploadRes || !uploadRes.success) {
|
|
482
|
-
// uploadLoadingConfig.value.show = false
|
|
483
|
-
// removeNotification()
|
|
484
|
-
// return reject({ message: uploadRes.errorMessage, remove: true })
|
|
485
|
-
// }
|
|
486
|
-
//
|
|
487
|
-
// uploadLoadingConfig.value.show = false
|
|
488
|
-
// resolve(uploadRes.url!)
|
|
489
|
-
// })
|
|
490
|
-
// },
|
|
491
397
|
setup(t) {
|
|
492
|
-
var
|
|
493
|
-
const
|
|
398
|
+
var r, u;
|
|
399
|
+
const i = () => {
|
|
494
400
|
A.value.dialogVisible = !0, setTimeout(() => {
|
|
495
|
-
var
|
|
496
|
-
const
|
|
497
|
-
|
|
401
|
+
var n, l;
|
|
402
|
+
const m = (n = document == null ? void 0 : document.querySelector) == null ? void 0 : n.call(document, ".tinymce-editor-upload-image-dialog .el-upload__text > div");
|
|
403
|
+
m && (m.innerHTML = ((l = s.value) == null ? void 0 : l.tipText) || "上传");
|
|
498
404
|
});
|
|
499
405
|
};
|
|
500
406
|
if (t.ui.registry.addMenuItem("localImage", {
|
|
501
407
|
text: "图片",
|
|
502
408
|
icon: "image",
|
|
503
|
-
onAction: () =>
|
|
409
|
+
onAction: () => i()
|
|
504
410
|
}), t.ui.registry.addButton("localImage", {
|
|
505
411
|
icon: "image",
|
|
506
412
|
tooltip: "图片",
|
|
507
|
-
onAction: () =>
|
|
508
|
-
}), (
|
|
509
|
-
const
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
const
|
|
513
|
-
|
|
413
|
+
onAction: () => i()
|
|
414
|
+
}), (r = x == null ? void 0 : x.value) != null && r.enable) {
|
|
415
|
+
const m = () => {
|
|
416
|
+
h.value.dialogVisible = !0, setTimeout(() => {
|
|
417
|
+
var l, f;
|
|
418
|
+
const n = (l = document == null ? void 0 : document.querySelector) == null ? void 0 : l.call(document, ".tinymce-editor-upload-audio-dialog .el-upload__text > div");
|
|
419
|
+
n && (n.innerHTML = ((f = s.value) == null ? void 0 : f.tipText) || "上传");
|
|
514
420
|
});
|
|
515
421
|
};
|
|
516
422
|
t.ui.registry.addMenuItem("localAudio", {
|
|
517
423
|
text: "音频",
|
|
518
424
|
icon: "arrow-right",
|
|
519
|
-
onAction: () =>
|
|
425
|
+
onAction: () => m()
|
|
520
426
|
}), t.ui.registry.addButton("localAudio", {
|
|
521
427
|
icon: "arrow-right",
|
|
522
428
|
tooltip: "音频",
|
|
523
|
-
onAction: () =>
|
|
429
|
+
onAction: () => m()
|
|
524
430
|
});
|
|
525
431
|
}
|
|
526
|
-
if ((
|
|
527
|
-
const
|
|
528
|
-
|
|
432
|
+
if ((u = c == null ? void 0 : c.value) != null && u.enable) {
|
|
433
|
+
const m = () => {
|
|
434
|
+
b.value.dialogVisible = !0;
|
|
529
435
|
};
|
|
530
436
|
t.ui.registry.addMenuItem("localVideo", {
|
|
531
437
|
text: "视频",
|
|
532
438
|
icon: "embed",
|
|
533
|
-
onAction: () =>
|
|
439
|
+
onAction: () => m()
|
|
534
440
|
}), t.ui.registry.addButton("localVideo", {
|
|
535
441
|
icon: "embed",
|
|
536
442
|
tooltip: "视频",
|
|
537
|
-
onAction: () =>
|
|
443
|
+
onAction: () => m()
|
|
538
444
|
});
|
|
539
445
|
}
|
|
540
446
|
}
|
|
541
|
-
}, a =
|
|
447
|
+
}, a = P(
|
|
542
448
|
[
|
|
543
|
-
|
|
544
|
-
|
|
449
|
+
d.options,
|
|
450
|
+
S.options,
|
|
545
451
|
e
|
|
546
452
|
],
|
|
547
453
|
{
|
|
548
|
-
mergeFunction: (t,
|
|
549
|
-
t(...
|
|
454
|
+
mergeFunction: (t, i) => (...r) => {
|
|
455
|
+
t(...r), i(...r);
|
|
550
456
|
},
|
|
551
457
|
type: Object
|
|
552
458
|
}
|
|
553
459
|
);
|
|
554
|
-
|
|
555
|
-
var
|
|
556
|
-
t && (t.customProps = { ...
|
|
557
|
-
if (
|
|
558
|
-
|
|
460
|
+
Z.init(a).then(([t]) => {
|
|
461
|
+
var i;
|
|
462
|
+
t && (t.customProps = { ...d }, t.on("input", () => {
|
|
463
|
+
if (k.value) {
|
|
464
|
+
k.value = !1;
|
|
559
465
|
return;
|
|
560
466
|
}
|
|
561
|
-
|
|
467
|
+
U.value = !0, M("input", t.getContent());
|
|
562
468
|
}), t.on("change", () => {
|
|
563
469
|
M("input", t.getContent());
|
|
564
|
-
}), t.on("paste", (
|
|
565
|
-
X(
|
|
566
|
-
}), t.on("drop", (
|
|
567
|
-
J(
|
|
568
|
-
}), (
|
|
470
|
+
}), t.on("paste", (r) => {
|
|
471
|
+
X(r);
|
|
472
|
+
}), t.on("drop", (r) => {
|
|
473
|
+
J(r);
|
|
474
|
+
}), (i = d.initComplete) == null || i.call(d, { editorIns: t }), g.value = t);
|
|
569
475
|
});
|
|
570
|
-
}),
|
|
476
|
+
}), Ae(() => {
|
|
571
477
|
var e, a, o, t;
|
|
572
|
-
(e =
|
|
478
|
+
(e = g.value) == null || e.off("input"), (a = g.value) == null || a.off("paste"), (o = g.value) == null || o.off("drop"), (t = g.value) == null || t.destroy();
|
|
573
479
|
});
|
|
574
|
-
const
|
|
480
|
+
const ne = () => {
|
|
575
481
|
var a, o;
|
|
576
|
-
const e = { ...
|
|
577
|
-
return ((o = (a =
|
|
578
|
-
},
|
|
482
|
+
const e = { ...h.value.additionalData || {} };
|
|
483
|
+
return ((o = (a = x.value) == null ? void 0 : a.data) == null ? void 0 : o.call(a, { ...e, extParameters: d.extParameters })) || {};
|
|
484
|
+
}, se = () => {
|
|
579
485
|
var a, o;
|
|
580
|
-
const e = { ...
|
|
581
|
-
return ((o = (a =
|
|
582
|
-
},
|
|
583
|
-
var
|
|
584
|
-
const t = (
|
|
585
|
-
t != null && t.url ? o[o.length - 1].url = t.url : t != null && t.errorMessage && (
|
|
586
|
-
},
|
|
587
|
-
var
|
|
588
|
-
const
|
|
589
|
-
if (!((
|
|
590
|
-
|
|
486
|
+
const e = { ...h.value.additionalData || {} };
|
|
487
|
+
return ((o = (a = x.value) == null ? void 0 : a.headers) == null ? void 0 : o.call(a, { ...e, extParameters: d.extParameters })) || {};
|
|
488
|
+
}, ue = (e, a, o) => {
|
|
489
|
+
var i, r;
|
|
490
|
+
const t = (r = (i = x == null ? void 0 : x.value) == null ? void 0 : i.handlerResponse) == null ? void 0 : r.call(i, e);
|
|
491
|
+
t != null && t.url ? o[o.length - 1].url = t.url : t != null && t.errorMessage && (p.error(t.errorMessage), o.splice(o.length - 1, 1)), h.value.formData.file = o;
|
|
492
|
+
}, me = (e, a) => new Promise((o, t) => {
|
|
493
|
+
var r, u, m, n, l, f;
|
|
494
|
+
const i = e.name.split(".").filter(Boolean).pop() ? e.name.split(".").filter(Boolean).pop() : "";
|
|
495
|
+
if (!((u = (r = x.value) == null ? void 0 : r.allowedType) != null && u.includes(i.toLowerCase()))) {
|
|
496
|
+
p.error(`请上传格式为${(n = (m = x.value) == null ? void 0 : m.allowedType) == null ? void 0 : n.map((D) => D.toUpperCase()).join("、")}的音频`), t();
|
|
591
497
|
return;
|
|
592
498
|
}
|
|
593
|
-
if (e.size > (((
|
|
594
|
-
|
|
499
|
+
if (e.size > (((l = x.value) == null ? void 0 : l.maxSize) || 0) * 1024 * 1024) {
|
|
500
|
+
p.error(`请上传${((f = x.value) == null ? void 0 : f.maxSize) || 0}M内的音频`), t();
|
|
595
501
|
return;
|
|
596
502
|
}
|
|
597
|
-
|
|
598
|
-
}),
|
|
599
|
-
|
|
600
|
-
},
|
|
601
|
-
|
|
602
|
-
},
|
|
503
|
+
h.value.additionalData = { file: e }, o(!0);
|
|
504
|
+
}), de = (e, a) => {
|
|
505
|
+
h.value.formData.file = a;
|
|
506
|
+
}, ce = (e, a, o) => {
|
|
507
|
+
p.error("上传发生错误,请重试!"), h.value.formData.file = o;
|
|
508
|
+
}, pe = () => {
|
|
603
509
|
var a, o;
|
|
604
|
-
const e = { ...
|
|
605
|
-
return ((o = (a = c.value) == null ? void 0 : a.data) == null ? void 0 : o.call(a, { ...e, extParameters:
|
|
606
|
-
},
|
|
510
|
+
const e = { ...b.value.additionalData || {} };
|
|
511
|
+
return ((o = (a = c.value) == null ? void 0 : a.data) == null ? void 0 : o.call(a, { ...e, extParameters: d.extParameters })) || {};
|
|
512
|
+
}, fe = () => {
|
|
607
513
|
var a, o;
|
|
608
|
-
const e = { ...
|
|
609
|
-
return ((o = (a = c.value) == null ? void 0 : a.headers) == null ? void 0 : o.call(a, { ...e, extParameters:
|
|
610
|
-
},
|
|
611
|
-
var
|
|
612
|
-
const t = (
|
|
613
|
-
t != null && t.url ? o[o.length - 1].url = t.url : t != null && t.errorMessage && (
|
|
614
|
-
},
|
|
615
|
-
var
|
|
616
|
-
const
|
|
617
|
-
if (!((
|
|
618
|
-
|
|
514
|
+
const e = { ...b.value.additionalData || {} };
|
|
515
|
+
return ((o = (a = c.value) == null ? void 0 : a.headers) == null ? void 0 : o.call(a, { ...e, extParameters: d.extParameters })) || {};
|
|
516
|
+
}, ve = (e, a, o) => {
|
|
517
|
+
var i, r;
|
|
518
|
+
const t = (r = (i = c == null ? void 0 : c.value) == null ? void 0 : i.handlerResponse) == null ? void 0 : r.call(i, e);
|
|
519
|
+
t != null && t.url ? o[o.length - 1].url = t.url : t != null && t.errorMessage && (p.error(t.errorMessage), o.splice(o.length - 1, 1)), b.value.formData.file = o;
|
|
520
|
+
}, ge = (e, a) => new Promise((o, t) => {
|
|
521
|
+
var r, u, m, n, l, f;
|
|
522
|
+
const i = e.name.split(".").filter(Boolean).pop() ? e.name.split(".").filter(Boolean).pop() : "";
|
|
523
|
+
if (!((u = (r = c == null ? void 0 : c.value) == null ? void 0 : r.allowedType) != null && u.includes(i.toLowerCase()))) {
|
|
524
|
+
p.error(`请上传格式为${(n = (m = c == null ? void 0 : c.value) == null ? void 0 : m.allowedType) == null ? void 0 : n.map((D) => D.toUpperCase()).join("、")}的视频`), t();
|
|
619
525
|
return;
|
|
620
526
|
}
|
|
621
|
-
if (e.size > (((
|
|
622
|
-
|
|
527
|
+
if (e.size > (((l = c == null ? void 0 : c.value) == null ? void 0 : l.maxSize) || 0) * 1024 * 1024) {
|
|
528
|
+
p.error(`请上传${((f = c == null ? void 0 : c.value) == null ? void 0 : f.maxSize) || 0}M内的视频`), t();
|
|
623
529
|
return;
|
|
624
530
|
}
|
|
625
|
-
|
|
626
|
-
}),
|
|
627
|
-
|
|
628
|
-
},
|
|
629
|
-
|
|
531
|
+
b.value.additionalData = { file: e }, o(!0);
|
|
532
|
+
}), he = (e, a) => {
|
|
533
|
+
b.value.formData.file = a;
|
|
534
|
+
}, xe = (e, a, o) => {
|
|
535
|
+
p.error("上传发生错误,请重试!"), b.value.formData.file = o;
|
|
630
536
|
};
|
|
631
|
-
return
|
|
537
|
+
return V(() => [d.disabled, g.value], () => {
|
|
632
538
|
var e, a;
|
|
633
|
-
(a = (e =
|
|
634
|
-
}, { immediate: !0 }),
|
|
635
|
-
() => [
|
|
539
|
+
(a = (e = g.value) == null ? void 0 : e.mode) == null || a.set(d.disabled ? "readonly" : "design");
|
|
540
|
+
}, { immediate: !0 }), V(
|
|
541
|
+
() => [d.value, g.value],
|
|
636
542
|
() => {
|
|
637
543
|
var e;
|
|
638
|
-
if (
|
|
639
|
-
|
|
544
|
+
if (U.value) {
|
|
545
|
+
U.value = !1;
|
|
640
546
|
return;
|
|
641
547
|
}
|
|
642
|
-
|
|
548
|
+
k.value = !0, (e = g.value) == null || e.setContent(d.value ? d.value : "");
|
|
643
549
|
},
|
|
644
550
|
{ immediate: !0 }
|
|
645
|
-
), { __sfc: !0, defaultImageUploadOptions: B, defaultVideoUploadOptions: j, defaultAudioUploadOptions:
|
|
551
|
+
), { __sfc: !0, defaultImageUploadOptions: B, defaultVideoUploadOptions: j, defaultAudioUploadOptions: E, props: d, emits: M, insRef: $, editorRef: g, preventSettingContent: U, preventUpdatingModelValue: k, uploadLoadingConfig: _, mergeImageUploadOptions: s, mergeVideoUploadOptions: c, mergeAudioUploadOptions: x, mergeImgPondOptions: H, imgPondAccept: ae, uploadImageImgPondRef: I, audioImageImgPondRef: z, uploadImage: A, uploadImageFormRef: F, onUploadImageClose: R, onUploadImageConfirm: oe, uploadAudio: h, uploadAudioFormRef: W, onUploadAudioClose: N, onUploadAudioConfirm: te, uploadVideo: b, uploadVideoFormRef: O, onUploadVideoClose: L, onUploadVideoConfirm: ie, onImageUploadUploadExceed: re, imageUploadTempFiles: T, onImageUploadUpload: le, uploadPasteOrDropFile: G, handleDataTransfer: q, onValuePaste: X, onValueDrop: J, getUploadAudioData: ne, getUploadAudioHeaders: se, onUploadAudioSuccess: ue, onUploadAudioBeforeUpload: me, onUploadAudioRemove: de, onUploadAudioError: ce, getUploadVideoData: pe, getUploadVideoHeaders: fe, onUploadVideoSuccess: ve, onUploadVideoBeforeUpload: ge, onUploadVideoRemove: he, onUploadVideoError: xe, ImgPond: Se };
|
|
646
552
|
}
|
|
647
553
|
});
|
|
648
554
|
export {
|
package/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tox-tinymce-aux{z-index:10000!important}.tox-statusbar__branding{display:none!important}.tinymce-editor-dialog .el-dialog{min-width:600px}.tinymce-editor-upload-image-dialog .uploadImageForm{display:flex;align-content:center}.tinymce-editor-upload-image-dialog .uploadImageForm .tips{margin-left:20px;display:flex;flex-direction:column}.tinymce-editor-upload-image-dialog .uploadImageForm .tips>span{margin-bottom:16px}.tinymce-editor-dialog .upload-hide .el-upload,.tinymce-editor-dialog .upload-hide .el-upload__tip{display:none}.tinymce-editor-loading-dialog{z-index:4000!important}.tinymce-editor-loading-dialog .el-dialog{margin-top:calc(50vh - 107px);width:388px;min-width:auto!important;height:214px;background-image:linear-gradient(-72deg,#d8faff,#fff);box-shadow:0 2px 20px #00000012;border-radius:16px}.tinymce-editor-loading-dialog .el-dialog .el-dialog__header{display:none!important}.tinymce-editor-loading-dialog .el-dialog .el-dialog__body{height:100%}.tinymce-editor-loading-dialog .el-dialog .el-dialog__body .tinymce-editor-loading-dialog-content{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.tinymce-editor-loading-dialog .el-dialog .el-dialog__body .tinymce-editor-loading-dialog-content span{margin-top:15px;font-size:16px;color:#1d2129;line-height:24px;font-weight:500}.tinymce-editor-spinner{width:60px;height:60px;position:relative;text-align:center;-webkit-animation:sk-rotate 2s infinite linear;animation:sk-rotate 2s infinite linear}.tinymce-editor-spinner-dot1,.tinymce-editor-spinner-dot2,.tinymce-editor-spinner-dot3{width:24px;height:24px;display:inline-block;position:absolute;top:0;background-color:#333;border-radius:100%;-webkit-animation:sk-bounce 2s infinite ease-in-out;animation:sk-bounce 2s infinite ease-in-out}.tinymce-editor-spinner-dot1{left:calc(50% - 12px);background-color:#5dff8e}.tinymce-editor-spinner-dot2{top:auto;bottom:0;right:0;-webkit-animation-delay:-1s;animation-delay:-1s;background-color:#21f4c7}.tinymce-editor-spinner-dot3{top:auto;bottom:0;left:0;-webkit-animation-delay:-1s;animation-delay:-1s;background-color:#98ff56}@-webkit-keyframes sk-rotate{to{-webkit-transform:rotate(360deg)}}@keyframes sk-rotate{to{transform:rotate(360deg);-webkit-transform:rotate(360deg)}}@-webkit-keyframes sk-bounce{0%,to{-webkit-transform:scale(0)}50%{-webkit-transform:scale(1)}}@keyframes sk-bounce{0%,to{transform:scale(0);-webkit-transform:scale(0)}50%{transform:scale(1);-webkit-transform:scale(1)}}.tinymce-editor-message{z-index:4000!important}
|
|
1
|
+
.tox-tinymce-aux{z-index:10000!important}.tox-statusbar__branding{display:none!important}.tinymce-editor-dialog .el-dialog{min-width:600px}.tinymce-editor-upload-image-dialog .uploadImageForm{display:flex;align-content:center}.tinymce-editor-upload-image-dialog .uploadImageForm .tips{margin-left:20px;display:flex;flex-direction:column}.tinymce-editor-upload-image-dialog .uploadImageForm .tips>span{margin-bottom:16px}.tinymce-editor-dialog .upload-hide .el-upload,.tinymce-editor-dialog .upload-hide .el-upload__tip{display:none}.tinymce-editor-loading-dialog{z-index:4000!important}.tinymce-editor-loading-dialog .el-dialog{margin-top:calc(50vh - 107px)!important;width:388px!important;min-width:auto!important;height:214px!important;background-image:linear-gradient(-72deg,#d8faff,#fff);box-shadow:0 2px 20px #00000012;border-radius:16px}.tinymce-editor-loading-dialog .el-dialog .el-dialog__header{display:none!important}.tinymce-editor-loading-dialog .el-dialog .el-dialog__body{height:100%}.tinymce-editor-loading-dialog .el-dialog .el-dialog__body .tinymce-editor-loading-dialog-content{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.tinymce-editor-loading-dialog .el-dialog .el-dialog__body .tinymce-editor-loading-dialog-content span{margin-top:15px;font-size:16px;color:#1d2129;line-height:24px;font-weight:500}.tinymce-editor-spinner{width:60px;height:60px;position:relative;text-align:center;-webkit-animation:sk-rotate 2s infinite linear;animation:sk-rotate 2s infinite linear}.tinymce-editor-spinner-dot1,.tinymce-editor-spinner-dot2,.tinymce-editor-spinner-dot3{width:24px;height:24px;display:inline-block;position:absolute;top:0;background-color:#333;border-radius:100%;-webkit-animation:sk-bounce 2s infinite ease-in-out;animation:sk-bounce 2s infinite ease-in-out}.tinymce-editor-spinner-dot1{left:calc(50% - 12px);background-color:#5dff8e}.tinymce-editor-spinner-dot2{top:auto;bottom:0;right:0;-webkit-animation-delay:-1s;animation-delay:-1s;background-color:#21f4c7}.tinymce-editor-spinner-dot3{top:auto;bottom:0;left:0;-webkit-animation-delay:-1s;animation-delay:-1s;background-color:#98ff56}@-webkit-keyframes sk-rotate{to{-webkit-transform:rotate(360deg)}}@keyframes sk-rotate{to{transform:rotate(360deg);-webkit-transform:rotate(360deg)}}@-webkit-keyframes sk-bounce{0%,to{-webkit-transform:scale(0)}50%{-webkit-transform:scale(1)}}@keyframes sk-bounce{0%,to{transform:scale(0);-webkit-transform:scale(0)}50%{transform:scale(1);-webkit-transform:scale(1)}}.tinymce-editor-message{z-index:4000!important}.el-dialog__wrapper>div[aria-label=编辑图片] .el-dialog__footer>div>:nth-child(2)>span.el-tag{display:none}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@keyblade/tinymce-editor-vue2",
|
|
3
3
|
"description": "KeyBlade Tinymce Editor Vue2",
|
|
4
4
|
"author": "yangshuai <704807396@qq.com>",
|
|
5
|
-
"version": "0.0.12-alpha.
|
|
5
|
+
"version": "0.0.12-alpha.51",
|
|
6
6
|
"private": false,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "es/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"vue-global-config": "^0.2.6",
|
|
24
24
|
"tinymce": "^7.1.0",
|
|
25
25
|
"element-ui": "^2.15.14",
|
|
26
|
-
"@keyblade/one-travel": "^2.0.
|
|
26
|
+
"@keyblade/one-travel": "^2.0.16"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"vue": "^2.7.0",
|