@keyblade/tinymce-editor-vue2 1.2.2 → 1.2.4
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/_virtual/_plugin-vue2_normalizer.js +3 -3
- package/es/editor.vue.d.ts +1 -1
- package/es/editor.vue.js +26 -14
- package/es/editor.vue2.js +123 -124
- package/es/index.d.ts +5 -5
- package/es/index.js +1 -1
- package/es/langs/zh_CN.d.ts +1 -1
- package/package.json +3 -3
- /package/es/{tinymce-editor-vue2.css → style.css} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function
|
|
1
|
+
function u(e, o, t, i, a, d, f, l) {
|
|
2
2
|
var n = typeof e == "function" ? e.options : e;
|
|
3
|
-
return n.render = o, n.staticRenderFns = t, n._compiled = !0, {
|
|
3
|
+
return o && (n.render = o, n.staticRenderFns = t, n._compiled = !0), {
|
|
4
4
|
exports: e,
|
|
5
5
|
options: n
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
u as default
|
|
10
10
|
};
|
package/es/editor.vue.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
extParameters: () => {};
|
|
27
27
|
options: () => {};
|
|
28
|
-
}>, {}, {}, {}, {}, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
28
|
+
}>, {}, {}, {}, {}, import('vue/types/v3-component-options.js').ComponentOptionsMixin, import('vue/types/v3-component-options.js').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
29
29
|
value: string;
|
|
30
30
|
disabled: boolean;
|
|
31
31
|
extParameters: () => {};
|
package/es/editor.vue.js
CHANGED
|
@@ -1,23 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
import D from "./editor.vue2.js";
|
|
2
|
+
import E from "./_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var b = function() {
|
|
4
|
+
var s, d, r, p, n, m, c, g, f, C, v, _, F, U, y;
|
|
5
5
|
var a = this, o = a._self._c, e = a._self._setupProxy;
|
|
6
|
-
return o("div", { staticClass: "tinymce-editor" }, [o("textarea", { ref: "insRef" }), o("el-dialog", { staticClass: "tinymce-editor-dialog tinymce-editor-upload-image-dialog", attrs: { visible: e.uploadImage.dialogVisible, title: "插入图片", "append-to-body": !0, "close-on-click-modal": !1, "destroy-on-close": "" }, on: { close: e.onUploadImageClose }
|
|
6
|
+
return o("div", { staticClass: "tinymce-editor" }, [o("textarea", { ref: "insRef" }), o("el-dialog", { staticClass: "tinymce-editor-dialog tinymce-editor-upload-image-dialog", attrs: { visible: e.uploadImage.dialogVisible, title: "插入图片", "append-to-body": !0, "close-on-click-modal": !1, "destroy-on-close": "" }, on: { close: e.onUploadImageClose }, scopedSlots: a._u([{ key: "footer", fn: function() {
|
|
7
|
+
return [o("div", [o("el-button", { on: { click: e.onUploadImageClose } }, [a._v("取消")]), o("el-button", { attrs: { type: "primary" }, on: { click: e.onUploadImageConfirm } }, [a._v("确定")])], 1)];
|
|
8
|
+
}, proxy: !0 }]) }, [o("el-form", { ref: "uploadImageFormRef", staticClass: "uploadImageForm", attrs: { model: e.uploadImage.formData } }, [o("el-form-item", { attrs: { prop: "images", rules: { required: !0, message: "必填项" } } }, [o("kb-pro-vue2-image-upload", a._b({ attrs: { accept: (s = e.mergeImageUploadOptions) == null ? void 0 : s.accept, action: e.mergeImageUploadOptions.action || "", data: e.getUploadImageData(), headers: e.getUploadImageHeaders(), onInnerBeforeUploadEnd: e.onUploadImageInnerBeforeUploadEnd }, model: { value: e.uploadImage.formData.images, callback: function(t) {
|
|
7
9
|
a.$set(e.uploadImage.formData, "images", t);
|
|
8
|
-
}, expression: "uploadImage.formData.images" } }, "kb-pro-vue2-image-upload", e.mergeImageUploadOptions, !1))], 1), o("div", { staticClass: "tips" }, [o("span", { staticStyle: { "font-size": "15px", "font-weight": "bold" } }, [a._v("注意:")]), o("span", [a._v("1. 单次最多可同时选择" + a._s(e.mergeImageUploadOptions.singleLimit) + "张图片")]), o("span", [a._v("2. 仅支持" + a._s((
|
|
10
|
+
}, expression: "uploadImage.formData.images" } }, "kb-pro-vue2-image-upload", e.mergeImageUploadOptions, !1))], 1), o("div", { staticClass: "tips" }, [o("span", { staticStyle: { "font-size": "15px", "font-weight": "bold" } }, [a._v("注意:")]), o("span", [a._v("1. 单次最多可同时选择" + a._s(e.mergeImageUploadOptions.singleLimit) + "张图片")]), o("span", [a._v("2. 仅支持" + a._s((r = (d = e.mergeImageUploadOptions) == null ? void 0 : d.accept) == null ? void 0 : r.map((t) => t.toUpperCase()).join("、")) + "格式")]), o("span", [a._v("3. 单张图片大小不可超过" + a._s((n = (p = e.mergeImageUploadOptions) == null ? void 0 : p.checkOptions) == null ? void 0 : n.maxSize) + "M")]), o("span", [a._v("4. 像素不低于" + a._s((c = (m = e.mergeImageUploadOptions) == null ? void 0 : m.checkOptions) == null ? void 0 : c.minWidth) + "*" + a._s((f = (g = e.mergeImageUploadOptions) == null ? void 0 : g.checkOptions) == null ? void 0 : f.minHeight) + "且像素不高于" + a._s((v = (C = e.mergeImageUploadOptions) == null ? void 0 : C.checkOptions) == null ? void 0 : v.maxWidth) + "*" + a._s((F = (_ = e.mergeImageUploadOptions) == null ? void 0 : _.checkOptions) == null ? void 0 : F.maxHeight))])])], 1)], 1), o("el-dialog", { staticClass: "tinymce-editor-dialog tinymce-editor-upload-audio-dialog", attrs: { visible: e.uploadAudio.dialogVisible, title: "插入音频", "append-to-body": !0, "close-on-click-modal": !1, "destroy-on-close": "" }, on: { close: e.onUploadAudioClose }, scopedSlots: a._u([{ key: "footer", fn: function() {
|
|
11
|
+
return [o("div", [o("el-button", { on: { click: e.onUploadAudioClose } }, [a._v("取消")]), o("el-button", { attrs: { type: "primary" }, on: { click: e.onUploadAudioConfirm } }, [a._v("确定")])], 1)];
|
|
12
|
+
}, proxy: !0 }]) }, [o("el-form", { ref: "uploadAudioFormRef", staticClass: "uploadAudioForm", attrs: { model: e.uploadAudio.formData, "label-width": "auto" } }, [o("el-form-item", { attrs: { label: "名称", prop: "name", rules: { required: !0, message: "必填项" } } }, [o("el-input", { attrs: { maxlength: "14", "show-word-limit": "", placeholder: "请输入" }, model: { value: e.uploadAudio.formData.name, callback: function(t) {
|
|
9
13
|
a.$set(e.uploadAudio.formData, "name", t);
|
|
10
|
-
}, expression: "uploadAudio.formData.name" } })], 1), o("el-form-item", { attrs: { label: "封面", prop: "cover", rules: { required: !0, message: "必填项" } } }, [o("kb-pro-vue2-image-upload", a._b({ attrs: { accept: (
|
|
14
|
+
}, expression: "uploadAudio.formData.name" } })], 1), o("el-form-item", { attrs: { label: "封面", prop: "cover", rules: { required: !0, message: "必填项" } } }, [o("kb-pro-vue2-image-upload", a._b({ attrs: { accept: (U = e.mergeImageUploadOptions) == null ? void 0 : U.accept, action: e.mergeImageUploadOptions.action || "", data: e.getUploadImageData(), headers: e.getUploadImageHeaders(), onInnerBeforeUploadEnd: e.onUploadImageInnerBeforeUploadEnd, limit: 1, multiple: !1 }, model: { value: e.uploadAudio.formData.cover, callback: function(t) {
|
|
11
15
|
a.$set(e.uploadAudio.formData, "cover", t);
|
|
12
|
-
}, expression: "uploadAudio.formData.cover" } }, "kb-pro-vue2-image-upload", e.mergeImageUploadOptions, !1))], 1), o("el-form-item", { attrs: { label: "音频", prop: "file", rules: { required: !0, message: "必填项" } } }, [o("el-upload", { class: ["upload", { "upload-hide": e.uploadAudio.formData.file.length >= 1 }], attrs: { name: e.mergeAudioUploadOptions.name, "file-list": e.uploadAudio.formData.file, action: ((
|
|
16
|
+
}, expression: "uploadAudio.formData.cover" } }, "kb-pro-vue2-image-upload", e.mergeImageUploadOptions, !1))], 1), o("el-form-item", { attrs: { label: "音频", prop: "file", rules: { required: !0, message: "必填项" } } }, [o("el-upload", { class: ["upload", { "upload-hide": e.uploadAudio.formData.file.length >= 1 }], attrs: { name: e.mergeAudioUploadOptions.name, "file-list": e.uploadAudio.formData.file, action: ((y = e.mergeAudioUploadOptions) == null ? void 0 : y.action) || "", data: e.getUploadAudioData(), accept: e.mergeAudioUploadOptions.accept, "list-type": "headTextContent", "before-upload": e.onUploadAudioBeforeUpload, headers: e.getUploadAudioHeaders(), "on-remove": e.onUploadAudioRemove, "on-success": e.onUploadAudioSuccess, "on-error": e.onUploadAudioError, limit: 1 }, scopedSlots: a._u([{ key: "tip", fn: function() {
|
|
17
|
+
var t, i, l;
|
|
18
|
+
return [o("div", { staticClass: "el-upload__tip" }, [o("div", { staticClass: "tips" }, [o("p", [a._v("注意:")]), o("div", [o("span", [a._v("1. 仅支持" + a._s((i = (t = e.mergeAudioUploadOptions) == null ? void 0 : t.allowedType) == null ? void 0 : i.map((u) => u.toUpperCase()).join("、")) + "格式")]), o("span", [a._v("2. 单个音频大小不可超过" + a._s((l = e.mergeAudioUploadOptions) == null ? void 0 : l.maxSize) + "M")])])])])];
|
|
19
|
+
}, proxy: !0 }]) }, [o("el-button", { attrs: { size: "small", type: "primary" } }, [a._v("上传文件"), o("i", { staticClass: "el-icon-upload el-icon--right" })])], 1)], 1)], 1)], 1), o("el-dialog", { staticClass: "tinymce-editor-dialog tinymce-editor-upload-video-dialog", attrs: { visible: e.uploadVideo.dialogVisible, title: "插入视频", "append-to-body": !0, "close-on-click-modal": !1, "destroy-on-close": "" }, on: { close: e.onUploadVideoClose }, scopedSlots: a._u([{ key: "footer", fn: function() {
|
|
20
|
+
return [o("div", [o("el-button", { on: { click: e.onUploadVideoClose } }, [a._v("取消")]), o("el-button", { attrs: { type: "primary" }, on: { click: e.onUploadVideoConfirm } }, [a._v("确定")])], 1)];
|
|
21
|
+
}, proxy: !0 }]) }, [o("el-form", { ref: "uploadVideoFormRef", staticClass: "uploadVideoForm", attrs: { model: e.uploadVideo.formData, "label-width": "auto" } }, [o("el-form-item", { attrs: { label: "视频", prop: "file", rules: { required: !0, message: "必填项" } } }, [o("el-upload", { class: ["upload", { "upload-hide": e.uploadVideo.formData.file.length >= 1 }], attrs: { name: e.mergeVideoUploadOptions.name, "file-list": e.uploadVideo.formData.file, action: e.mergeVideoUploadOptions.action || "", data: e.getUploadVideoData(), accept: e.mergeVideoUploadOptions.accept, "list-type": "headTextContent", "before-upload": e.onUploadVideoBeforeUpload, headers: e.getUploadVideoHeaders(), "on-remove": e.onUploadVideoRemove, "on-success": e.onUploadVideoSuccess, "on-error": e.onUploadVideoError, limit: 1 }, scopedSlots: a._u([{ key: "tip", fn: function() {
|
|
22
|
+
var t, i, l;
|
|
23
|
+
return [o("div", { staticClass: "el-upload__tip" }, [o("div", { staticClass: "tips" }, [o("p", [a._v("注意:")]), o("div", [o("span", [a._v("1. 仅支持" + a._s((i = (t = e.mergeVideoUploadOptions) == null ? void 0 : t.allowedType) == null ? void 0 : i.map((u) => u.toUpperCase()).join("、")) + "格式")]), o("span", [a._v("2. 单个视频大小不可超过" + a._s((l = e.mergeVideoUploadOptions) == null ? void 0 : l.maxSize) + "M")])])])])];
|
|
24
|
+
}, proxy: !0 }]) }, [o("el-button", { attrs: { size: "small", type: "primary" } }, [a._v("上传文件"), o("i", { staticClass: "el-icon-upload el-icon--right" })])], 1)], 1)], 1)], 1), o("el-dialog", { staticClass: "tinymce-editor-loading-dialog", attrs: { fullscreen: "", "append-to-body": "", visible: e.uploadLoadingConfig.show, "show-close": !1, "close-on-press-escape": !1, "close-on-click-modal": !1, "destroy-on-close": "" }, on: { "update:visible": function(t) {
|
|
13
25
|
return a.$set(e.uploadLoadingConfig, "show", t);
|
|
14
26
|
} } }, [o("div", { staticClass: "tinymce-editor-loading-dialog-content" }, [o("div", { staticClass: "tinymce-editor-spinner" }, [o("div", { staticClass: "tinymce-editor-spinner-dot1" }), o("div", { staticClass: "tinymce-editor-spinner-dot2" }), o("div", { staticClass: "tinymce-editor-spinner-dot3" })]), o("span", [a._v(a._s(e.uploadLoadingConfig.text))])])])], 1);
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
27
|
+
}, A = [], I = /* @__PURE__ */ E(
|
|
28
|
+
D,
|
|
29
|
+
b,
|
|
30
|
+
A
|
|
19
31
|
);
|
|
20
|
-
const
|
|
32
|
+
const V = I.exports;
|
|
21
33
|
export {
|
|
22
|
-
|
|
34
|
+
V as default
|
|
23
35
|
};
|
package/es/editor.vue2.js
CHANGED
|
@@ -10,24 +10,24 @@ var me = (c, s, i) => s in c ? Be(c, s, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
for (var i of ue(s))
|
|
11
11
|
He.call(s, i) && me(c, i, s[i]);
|
|
12
12
|
return c;
|
|
13
|
-
},
|
|
14
|
-
var F = (c, s, i) => new Promise((
|
|
15
|
-
var
|
|
13
|
+
}, O = (c, s) => Ve(c, je(s));
|
|
14
|
+
var F = (c, s, i) => new Promise((z, S) => {
|
|
15
|
+
var I = (g) => {
|
|
16
16
|
try {
|
|
17
17
|
m(i.next(g));
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
18
|
+
} catch (U) {
|
|
19
|
+
S(U);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, B = (g) => {
|
|
22
22
|
try {
|
|
23
23
|
m(i.throw(g));
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
24
|
+
} catch (U) {
|
|
25
|
+
S(U);
|
|
26
26
|
}
|
|
27
|
-
}, m = (g) => g.done ?
|
|
27
|
+
}, m = (g) => g.done ? z(g.value) : Promise.resolve(g.value).then(I, B);
|
|
28
28
|
m((i = i.apply(c, s)).next());
|
|
29
29
|
});
|
|
30
|
-
var G = (c, s, i) => (s = c[ce("asyncIterator")]) ? s.call(c) : (c = c[ce("iterator")](), s = {}, i = (
|
|
30
|
+
var G = (c, s, i) => (s = c[ce("asyncIterator")]) ? s.call(c) : (c = c[ce("iterator")](), s = {}, i = (z, S) => (S = c[z]) && (s[z] = (I) => new Promise((B, m, g) => (I = S.call(c, I), g = I.done, Promise.resolve(I.value).then((U) => B({ value: U, done: g }), m)))), i("next"), i("return"), s);
|
|
31
31
|
import { defineComponent as $e, ref as A, computed as X, onMounted as Ee, onUnmounted as qe, watch as de } from "vue";
|
|
32
32
|
import { oneTravelImageCheckAndTransform as Fe, oneTravelImageCompressor as We, blobToFile as Ne, getImagePixel as Le, getFileExtension as Ge } from "@keyblade/one-travel";
|
|
33
33
|
/* empty css */
|
|
@@ -66,7 +66,7 @@ import "tinymce/plugins/visualchars";
|
|
|
66
66
|
import "tinymce/plugins/wordcount";
|
|
67
67
|
import { globalProps as N } from "./index.js";
|
|
68
68
|
import { Message as b } from "element-ui";
|
|
69
|
-
import { defaultImageUploadOptions as
|
|
69
|
+
import { defaultImageUploadOptions as M, EImageUploadInnerBeforeUploadStep as Je } from "@keyblade/pro-components-vue2";
|
|
70
70
|
const Ra = /* @__PURE__ */ $e({
|
|
71
71
|
__name: "editor",
|
|
72
72
|
props: {
|
|
@@ -83,46 +83,46 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
83
83
|
setup(c, { emit: s }) {
|
|
84
84
|
const i = c;
|
|
85
85
|
pe.addI18n("zh_CN", Xe);
|
|
86
|
-
const
|
|
87
|
-
name:
|
|
88
|
-
accept:
|
|
89
|
-
multiple:
|
|
90
|
-
singleLimit:
|
|
91
|
-
disabled:
|
|
92
|
-
hideInnerBeforeUploadLoading:
|
|
93
|
-
checkOptions:
|
|
94
|
-
compressorOptions:
|
|
95
|
-
cropOptions:
|
|
96
|
-
},
|
|
86
|
+
const z = {
|
|
87
|
+
name: M.name,
|
|
88
|
+
accept: M.accept,
|
|
89
|
+
multiple: M.multiple,
|
|
90
|
+
singleLimit: M.singleLimit,
|
|
91
|
+
disabled: M.disabled,
|
|
92
|
+
hideInnerBeforeUploadLoading: M.hideInnerBeforeUploadLoading,
|
|
93
|
+
checkOptions: M.checkOptions,
|
|
94
|
+
compressorOptions: M.compressorOptions,
|
|
95
|
+
cropOptions: M.cropOptions
|
|
96
|
+
}, S = {
|
|
97
97
|
name: "file",
|
|
98
98
|
enable: !0,
|
|
99
99
|
maxSize: 300,
|
|
100
100
|
allowedType: ["avi", "wmv", "mp4", "mov", "3gp"],
|
|
101
101
|
accept: ".avi,.wmv,.mp4,.mov,.3gp"
|
|
102
|
-
},
|
|
102
|
+
}, I = {
|
|
103
103
|
name: "file",
|
|
104
104
|
enable: !0,
|
|
105
105
|
maxSize: 200,
|
|
106
106
|
allowedType: ["wav", "mp3", "mp4", "m4a", "wma", "aac"],
|
|
107
107
|
accept: ".wav,.mp3,.mp4,.m4a,.wma,.aac"
|
|
108
|
-
},
|
|
108
|
+
}, B = A(), m = A(), g = A(!1), U = A(!1), R = A({
|
|
109
109
|
show: !1,
|
|
110
110
|
text: "图片上传中,请稍等"
|
|
111
|
-
}), p = X(() => W([i.imageUploadOptions, N.imageUploadOptions,
|
|
111
|
+
}), p = X(() => W([i.imageUploadOptions, N.imageUploadOptions, z]) || {}), u = X(() => W([i.videoUploadOptions, N.videoUploadOptions, S]) || {}), v = X(() => W([i.audioUploadOptions, N.audioUploadOptions, I]) || {}), H = A({
|
|
112
112
|
dialogVisible: !1,
|
|
113
113
|
formData: {
|
|
114
114
|
images: []
|
|
115
115
|
}
|
|
116
|
-
}),
|
|
117
|
-
|
|
116
|
+
}), V = A(), J = A(), K = () => {
|
|
117
|
+
H.value.dialogVisible = !1, H.value.formData = {
|
|
118
118
|
images: []
|
|
119
|
-
},
|
|
119
|
+
}, V.value = void 0;
|
|
120
120
|
}, fe = () => {
|
|
121
121
|
var o;
|
|
122
122
|
(o = J.value) == null || o.validate((e) => {
|
|
123
|
-
e && (
|
|
124
|
-
var
|
|
125
|
-
(
|
|
123
|
+
e && (H.value.formData.images.forEach((a) => {
|
|
124
|
+
var n;
|
|
125
|
+
(n = m.value) == null || n.insertContent(`<img src=${a == null ? void 0 : a.url} alt="" />`);
|
|
126
126
|
}), K());
|
|
127
127
|
});
|
|
128
128
|
}, w = A({
|
|
@@ -142,12 +142,12 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
142
142
|
name: "",
|
|
143
143
|
cover: [],
|
|
144
144
|
file: []
|
|
145
|
-
}, w.value.additionalData = {},
|
|
145
|
+
}, w.value.additionalData = {}, V.value = void 0;
|
|
146
146
|
}, ve = () => {
|
|
147
147
|
var o;
|
|
148
148
|
(o = Q.value) == null || o.validate((e) => {
|
|
149
|
-
var a,
|
|
150
|
-
e && ((
|
|
149
|
+
var a, n;
|
|
150
|
+
e && ((n = m.value) == null || n.insertContent(`<audio controls controlslist="nodownload noplaybackrate" data-name="${w.value.formData.name}" data-poster="${w.value.formData.cover[0]}" src="${(a = w.value.formData.file[0]) == null ? void 0 : a.url}"></audio>`), Y());
|
|
151
151
|
});
|
|
152
152
|
}, _ = A({
|
|
153
153
|
dialogVisible: !1,
|
|
@@ -164,13 +164,13 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
164
164
|
}, ge = () => {
|
|
165
165
|
var o;
|
|
166
166
|
(o = Z.value) == null || o.validate((e) => {
|
|
167
|
-
var a,
|
|
168
|
-
e && ((
|
|
167
|
+
var a, n;
|
|
168
|
+
e && ((n = m.value) == null || n.insertContent(`<video width="auto" height="auto" controls src="${(a = _.value.formData.file[0]) == null ? void 0 : a.url}"></video>`), ee());
|
|
169
169
|
});
|
|
170
170
|
};
|
|
171
171
|
function ae(o) {
|
|
172
172
|
return F(this, null, function* () {
|
|
173
|
-
var r, d, y, f,
|
|
173
|
+
var r, d, y, f, h, C, P, $, E;
|
|
174
174
|
let e = o;
|
|
175
175
|
if (!((r = p.value) != null && r.handleRequest)) {
|
|
176
176
|
b.error("缺少图片上传配置");
|
|
@@ -181,30 +181,30 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
181
181
|
b.error("不允许粘贴");
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
|
-
const
|
|
184
|
+
const n = yield Fe(e, a, {
|
|
185
185
|
imageMaxSize: (d = p.value.checkOptions) == null ? void 0 : d.maxSize,
|
|
186
186
|
imageAllowedType: (y = p.value.checkOptions) == null ? void 0 : y.allowedType,
|
|
187
187
|
// imageAllowedMineType: mergeImageUploadOptions.value.allowedMineType,
|
|
188
188
|
imageMinWidth: (f = p.value.checkOptions) == null ? void 0 : f.minWidth,
|
|
189
|
-
imageMinHeight: (
|
|
190
|
-
imageMaxWidth: (
|
|
191
|
-
imageMaxHeight: (
|
|
189
|
+
imageMinHeight: (h = p.value.checkOptions) == null ? void 0 : h.minHeight,
|
|
190
|
+
imageMaxWidth: (C = p.value.checkOptions) == null ? void 0 : C.maxWidth,
|
|
191
|
+
imageMaxHeight: (P = p.value.checkOptions) == null ? void 0 : P.maxHeight
|
|
192
192
|
});
|
|
193
|
-
if (!
|
|
194
|
-
b.error((
|
|
193
|
+
if (!n.success) {
|
|
194
|
+
b.error((n == null ? void 0 : n.errorMessage) || "");
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
if (
|
|
198
|
-
e =
|
|
197
|
+
if (n.hasTransform) {
|
|
198
|
+
e = n.file;
|
|
199
199
|
const ie = a == null ? void 0 : a.split(".");
|
|
200
200
|
ie.pop(), a = `${ie.join(",")}.jpg`;
|
|
201
201
|
}
|
|
202
|
-
const
|
|
203
|
-
if (!
|
|
204
|
-
b.error((
|
|
202
|
+
const l = yield We(e);
|
|
203
|
+
if (!l.success) {
|
|
204
|
+
b.error((l == null ? void 0 : l.errorMessage) || "压缩失败");
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
|
-
const t = yield (E = (
|
|
207
|
+
const t = yield (E = ($ = p.value).handleRequest) == null ? void 0 : E.call($, Ne(l.file, a), a, { extParameters: i.extParameters });
|
|
208
208
|
if (!t || !t.success) {
|
|
209
209
|
b.error((t == null ? void 0 : t.errorMessage) || "");
|
|
210
210
|
return;
|
|
@@ -212,12 +212,12 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
212
212
|
return t.url;
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
const L = (o) => F(
|
|
216
|
-
var t, r, d, y, f,
|
|
215
|
+
const L = (o) => F(null, null, function* () {
|
|
216
|
+
var t, r, d, y, f, h, C, P, $, E, le, ne, re;
|
|
217
217
|
const e = m.value, a = o.types;
|
|
218
218
|
if (a.includes("text/html")) {
|
|
219
|
-
const
|
|
220
|
-
se.length > 0 && (
|
|
219
|
+
const T = o.getData("text/html"), j = new DOMParser().parseFromString(T, "text/html"), se = Array.from(j.body.querySelectorAll("img")), Te = Array.from(j.body.querySelectorAll("audio")), ze = Array.from(j.body.querySelectorAll("video"));
|
|
220
|
+
se.length > 0 && (R.value = {
|
|
221
221
|
show: !0,
|
|
222
222
|
text: "图片加载中,请稍等"
|
|
223
223
|
});
|
|
@@ -232,7 +232,7 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
232
232
|
x != null && x.success && (x != null && x.url) ? k.src = x == null ? void 0 : x.url : k.remove();
|
|
233
233
|
} else {
|
|
234
234
|
const x = yield Le(k.src);
|
|
235
|
-
x && (x.width < (((y = (d = p.value) == null ? void 0 : d.checkOptions) == null ? void 0 : y.minWidth) || 0) && x.height < (((
|
|
235
|
+
x && (x.width < (((y = (d = p.value) == null ? void 0 : d.checkOptions) == null ? void 0 : y.minWidth) || 0) && x.height < (((h = (f = p.value) == null ? void 0 : f.checkOptions) == null ? void 0 : h.minHeight) || 0) || x.width > (((P = (C = p.value) == null ? void 0 : C.checkOptions) == null ? void 0 : P.maxWidth) || 0) && x.height > (((E = ($ = p.value) == null ? void 0 : $.checkOptions) == null ? void 0 : E.maxHeight) || 0)) && k.remove();
|
|
236
236
|
}
|
|
237
237
|
else
|
|
238
238
|
k.remove(), b.error("不支持Word中批量复制图片或视频,请改为单个复制,或者从工具栏中手动插入上传");
|
|
@@ -247,29 +247,29 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
247
247
|
throw qa[0];
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
const Oe = new XMLSerializer().serializeToString(
|
|
250
|
+
R.value.show = !1;
|
|
251
|
+
const Oe = new XMLSerializer().serializeToString(j.body);
|
|
252
252
|
e.insertContent(Oe);
|
|
253
253
|
} else a.includes("text/plain") && e.insertContent(o.getData("text/plain"));
|
|
254
|
-
const
|
|
255
|
-
for (const
|
|
256
|
-
if (!
|
|
254
|
+
const n = Array.from((o == null ? void 0 : o.files) || []), l = [];
|
|
255
|
+
for (const T of n) {
|
|
256
|
+
if (!T)
|
|
257
257
|
continue;
|
|
258
|
-
const q = Ge(
|
|
259
|
-
|
|
258
|
+
const q = Ge(T.name);
|
|
259
|
+
T.type.indexOf("image") > -1 || (re = (ne = (le = p.value) == null ? void 0 : le.checkOptions) == null ? void 0 : ne.allowedType) != null && re.includes(q.toLowerCase()) ? l.push(T) : b.error("暂不支持的文件类型");
|
|
260
260
|
}
|
|
261
|
-
if (
|
|
262
|
-
|
|
261
|
+
if (l.length > 0) {
|
|
262
|
+
R.value = {
|
|
263
263
|
show: !0,
|
|
264
264
|
text: "图片上传中,请稍等"
|
|
265
265
|
};
|
|
266
266
|
try {
|
|
267
|
-
for (var Fa = G(
|
|
268
|
-
const
|
|
269
|
-
const q = yield ae(
|
|
267
|
+
for (var Fa = G(l), Wa, Na, La; Wa = !(Na = yield Fa.next()).done; Wa = !1) {
|
|
268
|
+
const T = Na.value;
|
|
269
|
+
const q = yield ae(T);
|
|
270
270
|
if (q) {
|
|
271
|
-
const
|
|
272
|
-
e.insertContent(
|
|
271
|
+
const j = `<img src="${q}" alt="" />`;
|
|
272
|
+
e.insertContent(j);
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
} catch (Na) {
|
|
@@ -282,7 +282,7 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
282
282
|
throw La[0];
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
|
|
285
|
+
R.value.show = !1;
|
|
286
286
|
}
|
|
287
287
|
s("input", e.getContent());
|
|
288
288
|
}), oe = (o) => {
|
|
@@ -297,12 +297,12 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
297
297
|
L(e);
|
|
298
298
|
};
|
|
299
299
|
Ee(() => {
|
|
300
|
-
var a,
|
|
300
|
+
var a, n, l;
|
|
301
301
|
const o = {
|
|
302
302
|
// 设置语言
|
|
303
303
|
language: "zh_CN",
|
|
304
304
|
// 实例
|
|
305
|
-
target:
|
|
305
|
+
target: B.value,
|
|
306
306
|
// 隐藏品牌
|
|
307
307
|
branding: !1,
|
|
308
308
|
// 隐藏右上角升级按钮
|
|
@@ -380,7 +380,7 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
380
380
|
convert_urls: !1,
|
|
381
381
|
paste_webkit_styles: "all",
|
|
382
382
|
paste_data_images: !1,
|
|
383
|
-
images_file_types: ((
|
|
383
|
+
images_file_types: ((l = (n = (a = p.value) == null ? void 0 : a.checkOptions) == null ? void 0 : n.allowedType) == null ? void 0 : l.join(",")) || "jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",
|
|
384
384
|
// 粘贴前处理
|
|
385
385
|
paste_preprocess(t, r) {
|
|
386
386
|
r == null || r.preventDefault();
|
|
@@ -388,7 +388,7 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
388
388
|
setup(t) {
|
|
389
389
|
var d, y;
|
|
390
390
|
const r = () => {
|
|
391
|
-
|
|
391
|
+
H.value.dialogVisible = !0;
|
|
392
392
|
};
|
|
393
393
|
if (t.ui.registry.addMenuItem("localImage", {
|
|
394
394
|
text: "图片",
|
|
@@ -427,24 +427,22 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
}, e = W(
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
{
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
442
|
-
);
|
|
430
|
+
}, e = W([
|
|
431
|
+
i.options,
|
|
432
|
+
N.options,
|
|
433
|
+
o
|
|
434
|
+
], {
|
|
435
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
436
|
+
mergeFunction: (t, r) => (...d) => {
|
|
437
|
+
t(...d), r(...d);
|
|
438
|
+
},
|
|
439
|
+
type: Object
|
|
440
|
+
});
|
|
443
441
|
pe.init(e).then(([t]) => {
|
|
444
442
|
var r;
|
|
445
443
|
t && (t.customProps = D({}, i), t.on("input", () => {
|
|
446
|
-
if (
|
|
447
|
-
|
|
444
|
+
if (U.value) {
|
|
445
|
+
U.value = !1;
|
|
448
446
|
return;
|
|
449
447
|
}
|
|
450
448
|
g.value = !0, s("input", t.getContent());
|
|
@@ -457,44 +455,44 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
457
455
|
}), (r = i.initComplete) == null || r.call(i, { editorIns: t }), m.value = t);
|
|
458
456
|
});
|
|
459
457
|
}), qe(() => {
|
|
460
|
-
var o, e, a,
|
|
461
|
-
(o = m.value) == null || o.off("input"), (e = m.value) == null || e.off("paste"), (a = m.value) == null || a.off("drop"), (
|
|
458
|
+
var o, e, a, n;
|
|
459
|
+
(o = m.value) == null || o.off("input"), (e = m.value) == null || e.off("paste"), (a = m.value) == null || a.off("drop"), (n = m.value) == null || n.destroy();
|
|
462
460
|
});
|
|
463
461
|
const he = () => {
|
|
464
462
|
var e, a;
|
|
465
|
-
const o = D({},
|
|
466
|
-
return ((a = (e = p.value) == null ? void 0 : e.data) == null ? void 0 : a.call(e,
|
|
463
|
+
const o = D({}, V.value || {});
|
|
464
|
+
return ((a = (e = p.value) == null ? void 0 : e.data) == null ? void 0 : a.call(e, O(D({}, o), { extParameters: i.extParameters }))) || {};
|
|
467
465
|
}, xe = () => {
|
|
468
466
|
var e, a;
|
|
469
|
-
const o = D({},
|
|
470
|
-
return ((a = (e = p.value) == null ? void 0 : e.headers) == null ? void 0 : a.call(e,
|
|
467
|
+
const o = D({}, V.value || {});
|
|
468
|
+
return ((a = (e = p.value) == null ? void 0 : e.headers) == null ? void 0 : a.call(e, O(D({}, o), { extParameters: i.extParameters }))) || {};
|
|
471
469
|
}, be = (o, e, a) => {
|
|
472
|
-
a === Je.all && (
|
|
470
|
+
a === Je.all && (V.value = { file: o });
|
|
473
471
|
}, we = () => {
|
|
474
472
|
var e, a;
|
|
475
473
|
const o = D({}, w.value.additionalData || {});
|
|
476
|
-
return ((a = (e = v.value) == null ? void 0 : e.data) == null ? void 0 : a.call(e,
|
|
474
|
+
return ((a = (e = v.value) == null ? void 0 : e.data) == null ? void 0 : a.call(e, O(D({}, o), { extParameters: i.extParameters }))) || {};
|
|
477
475
|
}, ye = () => {
|
|
478
476
|
var e, a;
|
|
479
477
|
const o = D({}, w.value.additionalData || {});
|
|
480
|
-
return ((a = (e = v.value) == null ? void 0 : e.headers) == null ? void 0 : a.call(e,
|
|
481
|
-
}, De = (o, e, a) => F(
|
|
478
|
+
return ((a = (e = v.value) == null ? void 0 : e.headers) == null ? void 0 : a.call(e, O(D({}, o), { extParameters: i.extParameters }))) || {};
|
|
479
|
+
}, De = (o, e, a) => F(null, null, function* () {
|
|
482
480
|
var t, r;
|
|
483
|
-
const
|
|
484
|
-
let
|
|
485
|
-
|
|
486
|
-
}), _e = (o
|
|
487
|
-
var t, r, d, y, f,
|
|
481
|
+
const n = (r = (t = v == null ? void 0 : v.value) == null ? void 0 : t.handlerResponse) == null ? void 0 : r.call(t, o);
|
|
482
|
+
let l;
|
|
483
|
+
n instanceof Promise ? l = yield n : l = n, l != null && l.url ? a[a.length - 1].url = l.url : l != null && l.errorMessage && (b.error(l.errorMessage), a.splice(a.length - 1, 1)), w.value.formData.file = a;
|
|
484
|
+
}), _e = (o) => new Promise((e, a) => {
|
|
485
|
+
var l, t, r, d, y, f, h, C;
|
|
488
486
|
const n = o.name.split(".").filter(Boolean).pop() ? o.name.split(".").filter(Boolean).pop() : "";
|
|
489
|
-
if (!((
|
|
490
|
-
b.error(`请上传格式为${(
|
|
487
|
+
if (!((t = (l = v.value) == null ? void 0 : l.allowedType) != null && t.includes(n.toLowerCase()))) {
|
|
488
|
+
b.error(`请上传格式为${(d = (r = v.value) == null ? void 0 : r.allowedType) == null ? void 0 : d.map((P) => P.toUpperCase()).join("、")}的音频`), a();
|
|
491
489
|
return;
|
|
492
490
|
}
|
|
493
|
-
if (o.size > (((
|
|
494
|
-
b.error(`请上传${((
|
|
491
|
+
if (o.size > (((y = v.value) == null ? void 0 : y.maxSize) || 0) * 1024 * 1024) {
|
|
492
|
+
b.error(`请上传${((f = v.value) == null ? void 0 : f.maxSize) || 0}M内的音频`), a();
|
|
495
493
|
return;
|
|
496
494
|
}
|
|
497
|
-
w.value.additionalData = { file: o }, (
|
|
495
|
+
w.value.additionalData = { file: o }, (C = (h = v == null ? void 0 : v.value) == null ? void 0 : h.beforeUploadEnd) == null || C.call(h, o), e(!0);
|
|
498
496
|
}), ke = (o, e) => {
|
|
499
497
|
w.value.formData.file = e;
|
|
500
498
|
}, Ae = (o, e, a) => {
|
|
@@ -502,28 +500,29 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
502
500
|
}, Ce = () => {
|
|
503
501
|
var e, a;
|
|
504
502
|
const o = D({}, _.value.additionalData || {});
|
|
505
|
-
return ((a = (e = u.value) == null ? void 0 : e.data) == null ? void 0 : a.call(e,
|
|
503
|
+
return ((a = (e = u.value) == null ? void 0 : e.data) == null ? void 0 : a.call(e, O(D({}, o), { extParameters: i.extParameters }))) || {};
|
|
506
504
|
}, Ue = () => {
|
|
507
505
|
var e, a;
|
|
508
506
|
const o = D({}, _.value.additionalData || {});
|
|
509
|
-
return ((a = (e = u.value) == null ? void 0 : e.headers) == null ? void 0 : a.call(e,
|
|
510
|
-
}, Ie = (o, e, a) => F(
|
|
507
|
+
return ((a = (e = u.value) == null ? void 0 : e.headers) == null ? void 0 : a.call(e, O(D({}, o), { extParameters: i.extParameters }))) || {};
|
|
508
|
+
}, Ie = (o, e, a) => F(null, null, function* () {
|
|
511
509
|
var t, r;
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
510
|
+
debugger;
|
|
511
|
+
const n = (r = (t = u == null ? void 0 : u.value) == null ? void 0 : t.handlerResponse) == null ? void 0 : r.call(t, o);
|
|
512
|
+
let l;
|
|
513
|
+
n instanceof Promise ? l = yield n : l = n, l != null && l.url ? a[a.length - 1].url = l.url : l != null && l.errorMessage && (b.error(l.errorMessage), a.splice(a.length - 1, 1)), _.value.formData.file = a;
|
|
514
|
+
}), Pe = (o) => new Promise((e, a) => {
|
|
515
|
+
var l, t, r, d, y, f, h, C;
|
|
517
516
|
const n = o.name.split(".").filter(Boolean).pop() ? o.name.split(".").filter(Boolean).pop() : "";
|
|
518
|
-
if (!((
|
|
519
|
-
b.error(`请上传格式为${(
|
|
517
|
+
if (!((t = (l = u == null ? void 0 : u.value) == null ? void 0 : l.allowedType) != null && t.includes(n.toLowerCase()))) {
|
|
518
|
+
b.error(`请上传格式为${(d = (r = u == null ? void 0 : u.value) == null ? void 0 : r.allowedType) == null ? void 0 : d.map((P) => P.toUpperCase()).join("、")}的视频`), a();
|
|
520
519
|
return;
|
|
521
520
|
}
|
|
522
|
-
if (o.size > (((
|
|
523
|
-
b.error(`请上传${((
|
|
521
|
+
if (o.size > (((y = u == null ? void 0 : u.value) == null ? void 0 : y.maxSize) || 0) * 1024 * 1024) {
|
|
522
|
+
b.error(`请上传${((f = u == null ? void 0 : u.value) == null ? void 0 : f.maxSize) || 0}M内的视频`), a();
|
|
524
523
|
return;
|
|
525
524
|
}
|
|
526
|
-
_.value.additionalData = { file: o }, (
|
|
525
|
+
_.value.additionalData = { file: o }, (C = (h = u == null ? void 0 : u.value) == null ? void 0 : h.beforeUploadEnd) == null || C.call(h, o), e(!0);
|
|
527
526
|
}), Me = (o, e) => {
|
|
528
527
|
_.value.formData.file = e;
|
|
529
528
|
}, Se = (o, e, a) => {
|
|
@@ -535,15 +534,15 @@ const Ra = /* @__PURE__ */ $e({
|
|
|
535
534
|
}, { immediate: !0 }), de(
|
|
536
535
|
() => [i.value, m.value],
|
|
537
536
|
() => {
|
|
538
|
-
var o, e, a,
|
|
537
|
+
var o, e, a, n;
|
|
539
538
|
if (g.value) {
|
|
540
539
|
g.value = !1;
|
|
541
540
|
return;
|
|
542
541
|
}
|
|
543
|
-
|
|
542
|
+
U.value = !0, (o = m.value) == null || o.setContent(i.value ? i.value : ""), (a = m.value) == null || a.selection.select((e = m.value) == null ? void 0 : e.getBody(), !0), (n = m.value) == null || n.selection.collapse(!1);
|
|
544
543
|
},
|
|
545
544
|
{ immediate: !0 }
|
|
546
|
-
), { __sfc: !0, defaultImageUploadOptions:
|
|
545
|
+
), { __sfc: !0, defaultImageUploadOptions: z, defaultVideoUploadOptions: S, defaultAudioUploadOptions: I, props: i, emits: s, insRef: B, editorRef: m, preventSettingContent: g, preventUpdatingModelValue: U, uploadLoadingConfig: R, mergeImageUploadOptions: p, mergeVideoUploadOptions: u, mergeAudioUploadOptions: v, uploadImage: H, uploadImageAdditionalData: V, uploadImageFormRef: J, onUploadImageClose: K, onUploadImageConfirm: fe, uploadAudio: w, uploadAudioFormRef: Q, onUploadAudioClose: Y, onUploadAudioConfirm: ve, uploadVideo: _, uploadVideoFormRef: Z, onUploadVideoClose: ee, onUploadVideoConfirm: ge, uploadPasteOrDropFile: ae, handleDataTransfer: L, onValuePaste: oe, onValueDrop: te, getUploadImageData: he, getUploadImageHeaders: xe, onUploadImageInnerBeforeUploadEnd: be, getUploadAudioData: we, getUploadAudioHeaders: ye, onUploadAudioSuccess: De, onUploadAudioBeforeUpload: _e, onUploadAudioRemove: ke, onUploadAudioError: Ae, getUploadVideoData: Ce, getUploadVideoHeaders: Ue, onUploadVideoSuccess: Ie, onUploadVideoBeforeUpload: Pe, onUploadVideoRemove: Me, onUploadVideoError: Se };
|
|
547
546
|
}
|
|
548
547
|
});
|
|
549
548
|
export {
|
package/es/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ interface TinymceEditorGlobalOptions {
|
|
|
11
11
|
videoUploadOptions?: VideoUploadOptions;
|
|
12
12
|
}
|
|
13
13
|
declare const globalProps: TinymceEditorGlobalOptions;
|
|
14
|
-
declare const TinymceEditor: import('vue/types/v3-component-public-instance').ComponentPublicInstanceConstructor<import('vue/types/v3-component-public-instance').Vue3Instance<{}, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
declare const TinymceEditor: import('vue/types/v3-component-public-instance.js').ComponentPublicInstanceConstructor<import('vue/types/v3-component-public-instance.js').Vue3Instance<{}, Readonly<import('vue').ExtractPropTypes<{
|
|
15
15
|
options: {
|
|
16
16
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
17
17
|
default: () => {};
|
|
@@ -78,7 +78,7 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
78
78
|
value: string;
|
|
79
79
|
disabled: boolean;
|
|
80
80
|
extParameters: Record<string, any>;
|
|
81
|
-
}, true, import('vue/types/v3-component-options').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import('vue').ExtractPropTypes<{
|
|
81
|
+
}, true, import('vue/types/v3-component-options.js').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import('vue').ExtractPropTypes<{
|
|
82
82
|
options: {
|
|
83
83
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
84
84
|
default: () => {};
|
|
@@ -109,7 +109,7 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
109
109
|
editorIns: import('tinymce').Editor;
|
|
110
110
|
}) => void>;
|
|
111
111
|
};
|
|
112
|
-
}>>> & import('vue').ShallowUnwrapRef<{}> & import('vue/types/v3-component-options').ExtractComputedReturns<{}> & import('vue').ComponentCustomProperties & Readonly<import('vue').ExtractPropTypes<{
|
|
112
|
+
}>>> & import('vue').ShallowUnwrapRef<{}> & import('vue/types/v3-component-options.js').ExtractComputedReturns<{}> & import('vue').ComponentCustomProperties & Readonly<import('vue').ExtractPropTypes<{
|
|
113
113
|
options: {
|
|
114
114
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
115
115
|
default: () => {};
|
|
@@ -140,7 +140,7 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
140
140
|
editorIns: import('tinymce').Editor;
|
|
141
141
|
}) => void>;
|
|
142
142
|
};
|
|
143
|
-
}>>> & import('vue/types/v3-component-options').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
143
|
+
}>>> & import('vue/types/v3-component-options.js').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
144
144
|
options: {
|
|
145
145
|
type: import('vue').PropType<Partial<RawEditorOptions>>;
|
|
146
146
|
default: () => {};
|
|
@@ -171,7 +171,7 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
|
|
|
171
171
|
editorIns: import('tinymce').Editor;
|
|
172
172
|
}) => void>;
|
|
173
173
|
};
|
|
174
|
-
}>>, {}, {}, {}, {}, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {}, string, {
|
|
174
|
+
}>>, {}, {}, {}, {}, import('vue/types/v3-component-options.js').ComponentOptionsMixin, import('vue/types/v3-component-options.js').ComponentOptionsMixin, {}, string, {
|
|
175
175
|
options: Partial<RawEditorOptions>;
|
|
176
176
|
value: string;
|
|
177
177
|
disabled: boolean;
|
package/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './style.css';
|
|
2
2
|
import e from "./editor.vue.js";
|
|
3
3
|
import { Button as t, Slider as u, Dialog as i, Upload as n, Tag as r, Form as m, FormItem as c, ButtonGroup as l, InputNumber as d, Loading as g } from "element-ui";
|
|
4
4
|
const b = {}, y = Object.assign(e, {
|
package/es/langs/zh_CN.d.ts
CHANGED
|
@@ -373,7 +373,7 @@ declare const _default: {
|
|
|
373
373
|
Yes: string;
|
|
374
374
|
'You are using {0}': string;
|
|
375
375
|
'You have unsaved changes are you sure you want to navigate away?': string;
|
|
376
|
-
|
|
376
|
+
'Your browser doesn\'t support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.': string;
|
|
377
377
|
alignment: string;
|
|
378
378
|
'austral sign': string;
|
|
379
379
|
'cedi sign': string;
|
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": "1.2.
|
|
5
|
+
"version": "1.2.4",
|
|
6
6
|
"private": false,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "es/index.js",
|
|
@@ -23,11 +23,11 @@
|
|
|
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": "^3.0.
|
|
26
|
+
"@keyblade/one-travel": "^3.0.1"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"vue": "^2.7.0",
|
|
30
|
-
"@keyblade/pro-components-vue2": "^1.
|
|
30
|
+
"@keyblade/pro-components-vue2": "^1.14.3"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "vite build",
|
|
File without changes
|