@keyblade/tinymce-editor-vue2 0.0.12-alpha.26 → 0.0.12-alpha.27
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 +7 -7
- package/package.json +1 -1
package/es/editor.vue2.js
CHANGED
|
@@ -34,7 +34,7 @@ import "tinymce/plugins/visualblocks";
|
|
|
34
34
|
import "tinymce/plugins/visualchars";
|
|
35
35
|
import "tinymce/plugins/wordcount";
|
|
36
36
|
import { globalProps as T } from "./index.js";
|
|
37
|
-
import { Loading as
|
|
37
|
+
import { Loading as U, Message as b } from "element-ui";
|
|
38
38
|
const sa = /* @__PURE__ */ he({
|
|
39
39
|
__name: "editor",
|
|
40
40
|
props: {
|
|
@@ -70,7 +70,7 @@ const sa = /* @__PURE__ */ he({
|
|
|
70
70
|
enable: !0,
|
|
71
71
|
maxSize: 200,
|
|
72
72
|
allowedType: ["mp3", "m4a", "wav", "aac"]
|
|
73
|
-
}, R = h(), x = h(), A = h(!1), P = h(!1), c = _(() => C([m.imageUploadOptions, T.imageUploadOptions, V]) || {}), d = _(() => C([m.videoUploadOptions, T.videoUploadOptions, B]) || {}), f = _(() => C([m.audioUploadOptions, T.audioUploadOptions, H]) || {}),
|
|
73
|
+
}, R = h(), x = h(), A = h(!1), P = h(!1), c = _(() => C([m.imageUploadOptions, T.imageUploadOptions, V]) || {}), d = _(() => C([m.videoUploadOptions, T.videoUploadOptions, B]) || {}), f = _(() => C([m.audioUploadOptions, T.audioUploadOptions, H]) || {}), k = _(() => C([m.imgPondOptions, T.imgPondOptions]) || {}), ee = _(() => {
|
|
74
74
|
var e, o;
|
|
75
75
|
return ((o = (e = c == null ? void 0 : c.value) == null ? void 0 : e.allowedType) == null ? void 0 : o.map((i) => `.${i}`).join(",")) || "";
|
|
76
76
|
}), D = h();
|
|
@@ -79,7 +79,7 @@ const sa = /* @__PURE__ */ he({
|
|
|
79
79
|
let e;
|
|
80
80
|
J(D.value, {
|
|
81
81
|
onStart: () => {
|
|
82
|
-
e =
|
|
82
|
+
e = U.service({ text: "加载中...", fullscreen: !0, customClass: "tinymce-loading", background: "rgba(0, 0, 0, 0.8)" });
|
|
83
83
|
},
|
|
84
84
|
onSuccess: () => {
|
|
85
85
|
e == null || e.close();
|
|
@@ -96,7 +96,7 @@ const sa = /* @__PURE__ */ he({
|
|
|
96
96
|
let e;
|
|
97
97
|
J(M.value, {
|
|
98
98
|
onStart: () => {
|
|
99
|
-
e =
|
|
99
|
+
e = U.service({ text: "加载中", fullscreen: !0, customClass: "tinymce-loading", background: "rgba(0, 0, 0, 0.8)" });
|
|
100
100
|
},
|
|
101
101
|
onSuccess: () => {
|
|
102
102
|
e == null || e.close();
|
|
@@ -122,7 +122,7 @@ const sa = /* @__PURE__ */ he({
|
|
|
122
122
|
o && (w.value.formData.images.forEach((i) => {
|
|
123
123
|
var t;
|
|
124
124
|
let a = i;
|
|
125
|
-
|
|
125
|
+
k.value.srcAt && (a = (i == null ? void 0 : i[k.value.srcAt]) || ""), (t = x.value) == null || t.insertContent(`<img src=${a} alt="" />`);
|
|
126
126
|
}), j());
|
|
127
127
|
});
|
|
128
128
|
}, v = h({
|
|
@@ -301,7 +301,7 @@ const sa = /* @__PURE__ */ he({
|
|
|
301
301
|
var N, O, L;
|
|
302
302
|
if (!((N = c.value) != null && N.handleRequest))
|
|
303
303
|
return n({ message: "缺少图片上传配置", remove: !0 });
|
|
304
|
-
const r =
|
|
304
|
+
const r = U.service({ text: "上传中....", background: "rgba(0, 0, 0, 0.8)" });
|
|
305
305
|
let l = a.blob(), s = l.name ? l.name : a.filename();
|
|
306
306
|
if (!(l != null && l.name) && !(l != null && l.lastModified) && l.type === "image/png")
|
|
307
307
|
return r == null || r.close(), n({ message: "不允许粘贴", remove: !0 });
|
|
@@ -485,7 +485,7 @@ const sa = /* @__PURE__ */ he({
|
|
|
485
485
|
P.value = !0, (e = x.value) == null || e.setContent(m.value ? m.value : "");
|
|
486
486
|
},
|
|
487
487
|
{ immediate: !0 }
|
|
488
|
-
), { __sfc: !0, defaultImageUploadOptions: V, defaultVideoUploadOptions: B, defaultAudioUploadOptions: H, props: m, emits: z, insRef: R, editorRef: x, preventSettingContent: A, preventUpdatingModelValue: P, mergeImageUploadOptions: c, mergeVideoUploadOptions: d, mergeAudioUploadOptions: f, mergeImgPondOptions:
|
|
488
|
+
), { __sfc: !0, defaultImageUploadOptions: V, defaultVideoUploadOptions: B, defaultAudioUploadOptions: H, props: m, emits: z, insRef: R, editorRef: x, preventSettingContent: A, preventUpdatingModelValue: P, mergeImageUploadOptions: c, mergeVideoUploadOptions: d, mergeAudioUploadOptions: f, mergeImgPondOptions: k, imgPondAccept: ee, uploadImageImgPondRef: D, audioImageImgPondRef: M, uploadImage: w, uploadImageFormRef: W, onUploadImageClose: j, onUploadImageConfirm: ae, uploadAudio: v, uploadAudioFormRef: $, onUploadAudioClose: E, onUploadAudioConfirm: te, uploadVideo: g, uploadVideoFormRef: I, onUploadVideoClose: q, onUploadVideoConfirm: oe, onImageUploadUpload: ie, processPastedImage: F, getUploadAudioData: le, getUploadAudioHeaders: ne, onUploadAudioSuccess: re, onUploadAudioBeforeUpload: se, onUploadAudioRemove: ue, onUploadAudioError: ce, getUploadVideoData: me, getUploadVideoHeaders: de, onUploadVideoSuccess: pe, onUploadVideoBeforeUpload: ve, onUploadVideoRemove: fe, onUploadVideoError: ge, ImgPond: _e };
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
491
|
export {
|
package/package.json
CHANGED