@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 CHANGED
@@ -1,11 +1,11 @@
1
- import { defineComponent as De, ref as y, computed as C, watch as z, onMounted as Ae, onUnmounted as Ce } from "vue";
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, generateUUID as Pe, getImagePixel as Z, getFileExtension as ee } from "./util.js";
3
+ import { blobToFile as Y, getImagePixel as Ce, getFileExtension as Pe } from "./util.js";
4
4
  import "./style.less.js";
5
- import Me from "imgpond";
6
- import { conclude as T } from "vue-global-config";
7
- import ae from "tinymce";
8
- import Se from "./langs/zh_CN.js";
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 P } from "./index.js";
38
- import { Message as f } from "element-ui";
39
- const va = /* @__PURE__ */ De({
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(te, { emit: M }) {
54
- const m = te;
55
- ae.addI18n("zh_CN", Se);
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
- }, q = {
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
- }, E = y(), h = y(), S = y(!1), U = y(!1), v = y({
75
+ }, $ = w(), g = w(), U = w(!1), k = w(!1), _ = w({
76
76
  show: !1,
77
77
  text: "图片上传中,请稍等"
78
- }), r = C(() => T([m.imageUploadOptions, P.imageUploadOptions, B]) || {}), c = C(() => T([m.videoUploadOptions, P.videoUploadOptions, j]) || {}), w = C(() => T([m.audioUploadOptions, P.audioUploadOptions, q]) || {}), H = C(() => T([m.imgPondOptions, P.imgPondOptions]) || {}), oe = C(() => {
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 = r == null ? void 0 : r.value) == null ? void 0 : e.allowedType) == null ? void 0 : a.map((o) => `.${o}`).join(",")) || "";
81
- }), I = y();
82
- z(() => I.value, () => {
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
- v.value = {
85
+ _.value = {
86
86
  show: !0,
87
87
  text: "图片加载中,请稍等"
88
88
  };
89
89
  },
90
90
  onSuccess: () => {
91
- v.value.show = !1;
91
+ _.value.show = !1;
92
92
  },
93
93
  onError: (e) => {
94
- v.value.show = !1, f.error({ message: e, customClass: "tinymce-editor-message", duration: 2e4 });
94
+ _.value.show = !1, p.error({ message: e, customClass: "tinymce-editor-message", duration: 2e4 });
95
95
  }
96
96
  });
97
97
  }, { immediate: !0 });
98
- const k = y();
99
- z(() => k.value, () => {
100
- k.value && K(k.value, {
98
+ const z = w();
99
+ V(() => z.value, () => {
100
+ z.value && K(z.value, {
101
101
  onStart: () => {
102
- v.value = {
102
+ _.value = {
103
103
  show: !0,
104
104
  text: "图片加载中,请稍等"
105
105
  };
106
106
  },
107
107
  onSuccess: () => {
108
- v.value.show = !1;
108
+ _.value.show = !1;
109
109
  },
110
110
  onError: (e) => {
111
- v.value.show = !1, f.error(e);
111
+ _.value.show = !1, p.error(e);
112
112
  }
113
113
  });
114
114
  }, { immediate: !0 });
115
- const A = y({
115
+ const A = w({
116
116
  dialogVisible: !1,
117
117
  formData: {
118
118
  images: []
119
119
  }
120
- }), $ = y(), R = () => {
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
- }, ie = () => {
124
+ }, oe = () => {
125
125
  var e;
126
- (e = $.value) == null || e.validate((a) => {
126
+ T = [], (e = F.value) == null || e.validate((a) => {
127
127
  a && (A.value.formData.images.forEach((o) => {
128
- var l;
128
+ var i;
129
129
  let t = o;
130
- H.value.srcAt && (t = (o == null ? void 0 : o[H.value.srcAt]) || ""), (l = h.value) == null || l.insertContent(`<img src=${t} alt="" />`);
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
- }, x = y({
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
- }), F = y(), N = () => {
146
- x.value.dialogVisible = !1, x.value.formData = {
145
+ }), W = w(), N = () => {
146
+ h.value.dialogVisible = !1, h.value.formData = {
147
147
  name: "",
148
148
  cover: [],
149
149
  file: []
150
- }, x.value.additionalData = {};
151
- }, le = () => {
150
+ }, h.value.additionalData = {};
151
+ }, te = () => {
152
152
  var e;
153
- (e = F.value) == null || e.validate((a) => {
153
+ (e = W.value) == null || e.validate((a) => {
154
154
  var o, t;
155
- a && ((t = h.value) == null || t.insertContent(`<audio controls controlslist="nodownload noplaybackrate" data-name="${x.value.formData.name}" data-poster="${x.value.formData.cover[0]}" src="${(o = x.value.formData.file[0]) == null ? void 0 : o.url}"></audio>`), N());
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
- }, _ = y({
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 = y(), L = () => {
166
- _.value.dialogVisible = !1, _.value.formData = {
165
+ }), O = w(), L = () => {
166
+ b.value.dialogVisible = !1, b.value.formData = {
167
167
  file: []
168
- }, _.value.additionalData = {};
169
- }, ne = () => {
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 = h.value) == null || t.insertContent(`<video width="auto" height="auto" controls src="${(o = _.value.formData.file[0]) == null ? void 0 : o.url}"></video>`), L());
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 = `单次最多可选择${r.value.maxCount}张图片`);
177
+ e && (e.innerHTML = `单次最多可选择${s.value.maxCount}张图片`);
178
178
  });
179
- }, se = (e, a) => new Promise(async (o, t) => {
180
- var d, n;
181
- const l = await Q(e);
182
- if (!l.success) {
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(l.errorMessage);
193
+ a.onError(r.errorMessage);
185
194
  });
186
195
  return;
187
196
  }
188
- const i = await ((n = (d = r.value).handleRequest) == null ? void 0 : n.call(d, Y(l.file, e.name), e.name, { extParameters: m.extParameters }));
189
- if (!i || !(i != null && i.success)) {
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(i == null ? void 0 : i.errorMessage);
200
+ a.onError(u == null ? void 0 : u.errorMessage);
192
201
  });
193
202
  return;
194
203
  }
195
- o(i.url);
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 d, n, u;
207
+ var u, m, n;
230
208
  let a = e;
231
- if (!((d = r.value) != null && d.handleRequest)) {
232
- f.error("缺少图片上传配置");
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
- v.value.show = !1, f.error("不允许粘贴");
215
+ p.error("不允许粘贴");
242
216
  return;
243
217
  }
244
218
  const t = await Te(a, o, {
245
- imageMaxSize: r.value.maxSize,
246
- imageAllowedType: r.value.allowedType,
219
+ imageMaxSize: s.value.maxSize,
220
+ imageAllowedType: s.value.allowedType,
247
221
  // imageAllowedMineType: mergeImageUploadOptions.value.allowedMineType,
248
- imageMinWidth: r.value.minWidth,
249
- imageMinHeight: r.value.minHeight,
250
- imageMaxWidth: r.value.maxWidth,
251
- imageMaxHeight: r.value.maxHeight
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
- v.value.show = !1, f.error((t == null ? void 0 : t.errorMessage) || "");
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 s = o == null ? void 0 : o.split(".");
260
- s.pop(), o = `${s.join(",")}.jpg`;
233
+ const l = o == null ? void 0 : o.split(".");
234
+ l.pop(), o = `${l.join(",")}.jpg`;
261
235
  }
262
- const l = await Q(a);
263
- if (!l.success) {
264
- v.value.show = !1, f.error((l == null ? void 0 : l.errorMessage) || "压缩失败");
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 i = await ((u = (n = r.value).handleRequest) == null ? void 0 : u.call(n, Y(l.file, o), o, { extParameters: m.extParameters }));
268
- if (!i || !i.success) {
269
- v.value.show = !1, f.error((i == null ? void 0 : i.errorMessage) || "");
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 v.value.show = !1, i.url;
246
+ return r.url;
273
247
  }
274
- const V = async (e) => {
275
- var l, i, d;
276
- const a = h.value, o = e.types;
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"), s = new DOMParser().parseFromString(n, "text/html"), p = Array.from(s.body.querySelectorAll("img")), b = Array.from(s.body.querySelectorAll("audio")), W = Array.from(s.body.querySelectorAll("video"));
279
- p.length > 0 && (v.value = {
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 D of [...b, ...W])
284
- D == null || D.remove();
285
- for await (const D of [...p])
286
- if (D.removeAttribute("crossorigin"), D.src.startsWith("http"))
287
- if ((l = r.value) != null && l.handleRequestByUrl) {
288
- const g = await ((i = r.value) == null ? void 0 : i.handleRequestByUrl(D.src, { extParameters: m.extParameters }));
289
- g != null && g.success && (g != null && g.url) ? D.src = g == null ? void 0 : g.url : D.remove();
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 g = await Z(D.src);
292
- g && (g.width < (r.value.minWidth || 0) && g.height < (r.value.minHeight || 0) || g.width > (r.value.maxWidth || 0) && g.height > (r.value.maxHeight || 0)) && D.remove();
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
- D.remove(), f.error("不支持Word中批量复制图片或视频,请改为单个复制,或者从工具栏中手动插入上传");
296
- v.value.show = !1;
297
- const _e = new XMLSerializer().serializeToString(s.body);
298
- a.insertContent(_e);
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.items);
302
- for await (const n of t) {
303
- const u = n.getAsFile();
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 s = ee(u.name);
307
- if (u.type.indexOf("image") > -1 || (d = r.value.allowedType) != null && d.includes(s.toLowerCase())) {
308
- const p = await G(u);
309
- if (p) {
310
- const b = `<img src="${p}" alt="" />`;
311
- a.insertContent(b);
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
- V(a);
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
- V(a);
306
+ q(a);
326
307
  };
327
- Ae(() => {
308
+ De(() => {
328
309
  var o;
329
310
  const e = {
330
311
  // 设置语言
331
312
  language: "zh_CN",
332
313
  // 实例
333
- target: E.value,
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 = r.value.allowedType) == null ? void 0 : o.join(",")) || "jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",
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, l) {
414
- l == null || l.preventDefault();
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 i, d;
493
- const l = () => {
398
+ var r, u;
399
+ const i = () => {
494
400
  A.value.dialogVisible = !0, setTimeout(() => {
495
- var u, s;
496
- const n = (u = document == null ? void 0 : document.querySelector) == null ? void 0 : u.call(document, ".tinymce-editor-upload-image-dialog .el-upload__text > div");
497
- n && (n.innerHTML = ((s = r.value) == null ? void 0 : s.tipText) || "上传");
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: () => l()
409
+ onAction: () => i()
504
410
  }), t.ui.registry.addButton("localImage", {
505
411
  icon: "image",
506
412
  tooltip: "图片",
507
- onAction: () => l()
508
- }), (i = w == null ? void 0 : w.value) != null && i.enable) {
509
- const n = () => {
510
- x.value.dialogVisible = !0, setTimeout(() => {
511
- var s, p;
512
- const u = (s = document == null ? void 0 : document.querySelector) == null ? void 0 : s.call(document, ".tinymce-editor-upload-audio-dialog .el-upload__text > div");
513
- u && (u.innerHTML = ((p = r.value) == null ? void 0 : p.tipText) || "上传");
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: () => n()
425
+ onAction: () => m()
520
426
  }), t.ui.registry.addButton("localAudio", {
521
427
  icon: "arrow-right",
522
428
  tooltip: "音频",
523
- onAction: () => n()
429
+ onAction: () => m()
524
430
  });
525
431
  }
526
- if ((d = c == null ? void 0 : c.value) != null && d.enable) {
527
- const n = () => {
528
- _.value.dialogVisible = !0;
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: () => n()
439
+ onAction: () => m()
534
440
  }), t.ui.registry.addButton("localVideo", {
535
441
  icon: "embed",
536
442
  tooltip: "视频",
537
- onAction: () => n()
443
+ onAction: () => m()
538
444
  });
539
445
  }
540
446
  }
541
- }, a = T(
447
+ }, a = P(
542
448
  [
543
- m.options,
544
- P.options,
449
+ d.options,
450
+ S.options,
545
451
  e
546
452
  ],
547
453
  {
548
- mergeFunction: (t, l) => (...i) => {
549
- t(...i), l(...i);
454
+ mergeFunction: (t, i) => (...r) => {
455
+ t(...r), i(...r);
550
456
  },
551
457
  type: Object
552
458
  }
553
459
  );
554
- ae.init(a).then(([t]) => {
555
- var l;
556
- t && (t.customProps = { ...m }, t.on("input", () => {
557
- if (U.value) {
558
- U.value = !1;
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
- S.value = !0, M("input", t.getContent());
467
+ U.value = !0, M("input", t.getContent());
562
468
  }), t.on("change", () => {
563
469
  M("input", t.getContent());
564
- }), t.on("paste", (i) => {
565
- X(i);
566
- }), t.on("drop", (i) => {
567
- J(i);
568
- }), (l = m.initComplete) == null || l.call(m, { editorIns: t }), h.value = t);
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
- }), Ce(() => {
476
+ }), Ae(() => {
571
477
  var e, a, o, t;
572
- (e = h.value) == null || e.off("input"), (a = h.value) == null || a.off("paste"), (o = h.value) == null || o.off("drop"), (t = h.value) == null || t.destroy();
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 me = () => {
480
+ const ne = () => {
575
481
  var a, o;
576
- const e = { ...x.value.additionalData || {} };
577
- return ((o = (a = w.value) == null ? void 0 : a.data) == null ? void 0 : o.call(a, { ...e, extParameters: m.extParameters })) || {};
578
- }, de = () => {
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 = { ...x.value.additionalData || {} };
581
- return ((o = (a = w.value) == null ? void 0 : a.headers) == null ? void 0 : o.call(a, { ...e, extParameters: m.extParameters })) || {};
582
- }, ce = (e, a, o) => {
583
- var l, i;
584
- const t = (i = (l = w == null ? void 0 : w.value) == null ? void 0 : l.handlerResponse) == null ? void 0 : i.call(l, e);
585
- t != null && t.url ? o[o.length - 1].url = t.url : t != null && t.errorMessage && (f.error(t.errorMessage), o.splice(o.length - 1, 1)), x.value.formData.file = o;
586
- }, pe = (e, a) => new Promise((o, t) => {
587
- var i, d, n, u, s, p;
588
- const l = e.name.split(".").filter(Boolean).pop() ? e.name.split(".").filter(Boolean).pop() : "";
589
- if (!((d = (i = w.value) == null ? void 0 : i.allowedType) != null && d.includes(l.toLowerCase()))) {
590
- f.error(`请上传格式为${(u = (n = w.value) == null ? void 0 : n.allowedType) == null ? void 0 : u.map((b) => b.toUpperCase()).join("、")}的音频`), t();
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 > (((s = w.value) == null ? void 0 : s.maxSize) || 0) * 1024 * 1024) {
594
- f.error(`请上传${((p = w.value) == null ? void 0 : p.maxSize) || 0}M内的音频`), t();
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
- x.value.additionalData = { file: e }, o(!0);
598
- }), fe = (e, a) => {
599
- x.value.formData.file = a;
600
- }, ve = (e, a, o) => {
601
- f.error("上传发生错误,请重试!"), x.value.formData.file = o;
602
- }, ge = () => {
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 = { ..._.value.additionalData || {} };
605
- return ((o = (a = c.value) == null ? void 0 : a.data) == null ? void 0 : o.call(a, { ...e, extParameters: m.extParameters })) || {};
606
- }, he = () => {
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 = { ..._.value.additionalData || {} };
609
- return ((o = (a = c.value) == null ? void 0 : a.headers) == null ? void 0 : o.call(a, { ...e, extParameters: m.extParameters })) || {};
610
- }, xe = (e, a, o) => {
611
- var l, i;
612
- const t = (i = (l = c == null ? void 0 : c.value) == null ? void 0 : l.handlerResponse) == null ? void 0 : i.call(l, e);
613
- t != null && t.url ? o[o.length - 1].url = t.url : t != null && t.errorMessage && (f.error(t.errorMessage), o.splice(o.length - 1, 1)), _.value.formData.file = o;
614
- }, we = (e, a) => new Promise((o, t) => {
615
- var i, d, n, u, s, p;
616
- const l = e.name.split(".").filter(Boolean).pop() ? e.name.split(".").filter(Boolean).pop() : "";
617
- if (!((d = (i = c == null ? void 0 : c.value) == null ? void 0 : i.allowedType) != null && d.includes(l.toLowerCase()))) {
618
- f.error(`请上传格式为${(u = (n = c == null ? void 0 : c.value) == null ? void 0 : n.allowedType) == null ? void 0 : u.map((b) => b.toUpperCase()).join("、")}的视频`), t();
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 > (((s = c == null ? void 0 : c.value) == null ? void 0 : s.maxSize) || 0) * 1024 * 1024) {
622
- f.error(`请上传${((p = c == null ? void 0 : c.value) == null ? void 0 : p.maxSize) || 0}M内的视频`), t();
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
- _.value.additionalData = { file: e }, o(!0);
626
- }), be = (e, a) => {
627
- _.value.formData.file = a;
628
- }, ye = (e, a, o) => {
629
- f.error("上传发生错误,请重试!"), _.value.formData.file = o;
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 z(() => [m.disabled, h.value], () => {
537
+ return V(() => [d.disabled, g.value], () => {
632
538
  var e, a;
633
- (a = (e = h.value) == null ? void 0 : e.mode) == null || a.set(m.disabled ? "readonly" : "design");
634
- }, { immediate: !0 }), z(
635
- () => [m.value, h.value],
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 (S.value) {
639
- S.value = !1;
544
+ if (U.value) {
545
+ U.value = !1;
640
546
  return;
641
547
  }
642
- U.value = !0, (e = h.value) == null || e.setContent(m.value ? m.value : "");
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: q, props: m, emits: M, insRef: E, editorRef: h, preventSettingContent: S, preventUpdatingModelValue: U, uploadLoadingConfig: v, mergeImageUploadOptions: r, mergeVideoUploadOptions: c, mergeAudioUploadOptions: w, mergeImgPondOptions: H, imgPondAccept: oe, uploadImageImgPondRef: I, audioImageImgPondRef: k, uploadImage: A, uploadImageFormRef: $, onUploadImageClose: R, onUploadImageConfirm: ie, uploadAudio: x, uploadAudioFormRef: F, onUploadAudioClose: N, onUploadAudioConfirm: le, uploadVideo: _, uploadVideoFormRef: O, onUploadVideoClose: L, onUploadVideoConfirm: ne, onImageUploadUploadExceed: re, onImageUploadUpload: se, processPastedImage: ue, uploadPasteOrDropFile: G, handleDataTransfer: V, onValuePaste: X, onValueDrop: J, getUploadAudioData: me, getUploadAudioHeaders: de, onUploadAudioSuccess: ce, onUploadAudioBeforeUpload: pe, onUploadAudioRemove: fe, onUploadAudioError: ve, getUploadVideoData: ge, getUploadVideoHeaders: he, onUploadVideoSuccess: xe, onUploadVideoBeforeUpload: we, onUploadVideoRemove: be, onUploadVideoError: ye, ImgPond: Me };
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.49",
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.14"
26
+ "@keyblade/one-travel": "^2.0.16"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "vue": "^2.7.0",