@keyblade/tinymce-editor-vue2 0.0.8-alpha.2 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # tinymce 富文本编辑器
2
+ 封装 tinymce 编辑器,该库不包含任何组件库, 对于图片上传、视频上传等功能,可使用自定义插件实现。
2
3
 
3
4
  ## 一、安装
4
5
  ```shell
@@ -6,13 +7,16 @@ yarn add @keyblade/tinymce-editor-vue2
6
7
  ```
7
8
 
8
9
  ## 二、使用
9
- ### 1.注入组件并设置全局属性
10
+ ### 1.注入组件并设置全局属性(可选)
10
11
  ```typescript
11
12
  import TinymceEditor from '@keyblade/tinymce-editor-vue2'
13
+
12
14
  Vue.use(TinymceEditor, {
15
+ // 配置消息提示
13
16
  message: {
14
17
  // 注入 loading 方法
15
18
  loading: () => {
19
+ // 可以使用项目中的UI组件,这里以ElementUI为例
16
20
  const ins = Loading.service({ text: '加载中' })
17
21
  return {
18
22
  close: () => {
@@ -22,7 +26,7 @@ Vue.use(TinymceEditor, {
22
26
  }
23
27
  },
24
28
  // 配置图片上传
25
- imageUploadHandle: (file, filename) => {
29
+ imageUploadHandle: (file, filename, { extParameters }) => {
26
30
  return new Promise((resolve) => {
27
31
  resolve({
28
32
  success: true,
@@ -69,7 +73,9 @@ interface TinymceEditorGlobalOptions {
69
73
  destroy?: () => void
70
74
  }
71
75
  /** 图片上传请求处理,需要返回图片地址 */
72
- imageUploadHandle?: (file: File | Blob, filename: string) => Promise<{success: boolean; url?: string; errorMessage?: string}>;
76
+ imageUploadHandle?: (file: File | Blob, filename: string, options?: {
77
+ extParameters?: Record<string, any>
78
+ }) => Promise<{success: boolean; url?: string; errorMessage?: string}>;
73
79
  /** 接着默认配置进行处理 */
74
80
  paste_preprocess?: (editor: Editor, args: {
75
81
  content: string;
@@ -80,6 +86,7 @@ interface TinymceEditorGlobalOptions {
80
86
  node: HTMLElement;
81
87
  readonly internal: boolean;
82
88
  }) => void;
89
+ /** tinyMCE编辑器配置 */
83
90
  tinymceOptions?: RawEditorOptions
84
91
  }
85
92
  ```
@@ -91,6 +98,8 @@ interface ComponentProps {
91
98
  value?: string
92
99
  /** vue3 v-model */
93
100
  modelValue?: string
101
+ /** 是否禁止编辑 */
102
+ disabled?: boolean;
94
103
  /** 图片最大值(单位M,主要用于错误提示) */
95
104
  imageMaxSize?: number;
96
105
  /** 图片允许的类型 */
@@ -119,7 +128,7 @@ interface ComponentProps {
119
128
  }) => void;
120
129
  /** 初始化完成 */
121
130
  initComplete?: (params: { editorIns: Editor }) => void,
122
- /** 富文本编辑器选项 */
131
+ /** tinyMCE选项 */
123
132
  options?: Partial<RawEditorOptions>
124
133
  }
125
134
  ```
@@ -1,10 +1,14 @@
1
1
  import { Editor, RawEditorOptions } from 'tinymce';
2
2
 
3
- declare const _default: import('vue-demi').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
4
  /** vue2 v-model */
5
5
  value?: string | undefined;
6
6
  /** vue3 v-model */
7
7
  modelValue?: string | undefined;
8
+ /** 是否禁止编辑 */
9
+ disabled?: boolean | undefined;
10
+ /** 额外参数 */
11
+ extParameters?: Record<string, any> | undefined;
8
12
  /** 图片最大值(单位M,主要用于错误提示) */
9
13
  imageMaxSize?: number | undefined;
10
14
  /** 图片允许的类型 */
@@ -20,7 +24,9 @@ declare const _default: import('vue-demi').DefineComponent<__VLS_WithDefaults<__
20
24
  /** 图片最大高度 */
21
25
  imageMaxHeight?: number | undefined;
22
26
  /** 图片上传请求处理,需要返回图片地址 */
23
- imageUploadHandle?: ((file: File | Blob, filename: string) => Promise<{
27
+ imageUploadHandle?: ((file: File | Blob, filename: string, options?: {
28
+ extParameters?: Record<string, any>;
29
+ }) => Promise<{
24
30
  success: boolean;
25
31
  url?: string;
26
32
  errorMessage?: string;
@@ -55,11 +61,15 @@ declare const _default: import('vue-demi').DefineComponent<__VLS_WithDefaults<__
55
61
  }>, {}, {}, {}, {}, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {
56
62
  input: (value: string) => void;
57
63
  "update:modelValue": (value: string) => void;
58
- }, string, Readonly<import('vue-demi').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
64
+ }, string, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
59
65
  /** vue2 v-model */
60
66
  value?: string | undefined;
61
67
  /** vue3 v-model */
62
68
  modelValue?: string | undefined;
69
+ /** 是否禁止编辑 */
70
+ disabled?: boolean | undefined;
71
+ /** 额外参数 */
72
+ extParameters?: Record<string, any> | undefined;
63
73
  /** 图片最大值(单位M,主要用于错误提示) */
64
74
  imageMaxSize?: number | undefined;
65
75
  /** 图片允许的类型 */
@@ -75,7 +85,9 @@ declare const _default: import('vue-demi').DefineComponent<__VLS_WithDefaults<__
75
85
  /** 图片最大高度 */
76
86
  imageMaxHeight?: number | undefined;
77
87
  /** 图片上传请求处理,需要返回图片地址 */
78
- imageUploadHandle?: ((file: File | Blob, filename: string) => Promise<{
88
+ imageUploadHandle?: ((file: File | Blob, filename: string, options?: {
89
+ extParameters?: Record<string, any>;
90
+ }) => Promise<{
79
91
  success: boolean;
80
92
  url?: string;
81
93
  errorMessage?: string;
package/es/editor.vue2.js CHANGED
@@ -1,9 +1,8 @@
1
- import { defineComponent as $ } from "vue";
2
- import { ref as y, computed as z, onMounted as F, onUnmounted as N, watch as j } from "vue-demi";
3
- import L from "compressorjs";
1
+ import { defineComponent as N, ref as y, computed as k, onMounted as L, onUnmounted as j, watch as O } from "vue";
2
+ import q from "compressorjs";
4
3
  import { conclude as _ } from "vue-global-config";
5
- import q from "tinymce";
6
- import { addI18n as E } from "./langs/zh_CN.js";
4
+ import R from "tinymce";
5
+ import E from "./langs/zh_CN.js";
7
6
  import "tinymce/skins/ui/oxide/skin";
8
7
  import "tinymce/models/dom";
9
8
  import "tinymce/themes/silver";
@@ -33,11 +32,13 @@ import "tinymce/plugins/visualblocks";
33
32
  import "tinymce/plugins/visualchars";
34
33
  import "tinymce/plugins/wordcount";
35
34
  import { globalProps as d } from "./index.js";
36
- const ke = /* @__PURE__ */ $({
35
+ const ze = /* @__PURE__ */ N({
37
36
  __name: "editor",
38
37
  props: {
39
38
  value: { default: "" },
40
39
  modelValue: { default: "" },
40
+ disabled: { type: Boolean },
41
+ extParameters: null,
41
42
  imageMaxSize: { default: 30 },
42
43
  imageAllowedType: { default: () => ["jpg", "jpeg", "png", "bmp", "heif", "gif", "webp"] },
43
44
  imageAllowedMineType: { default: () => ["image/jpg", "image/jpeg", "image/png", "image/bmp", "image/heif", "image/heic", "image/gif", "image/webp"] },
@@ -52,80 +53,77 @@ const ke = /* @__PURE__ */ $({
52
53
  options: { default: () => ({}) }
53
54
  },
54
55
  emits: ["input", "update:modelValue"],
55
- setup(O, { emit: b }) {
56
- const i = O;
57
- E();
58
- const W = y(), m = y(), g = y(!1), f = y(!1);
59
- async function A(n) {
60
- var o, e;
56
+ setup($, { emit: b }) {
57
+ const t = $;
58
+ R.addI18n("zh_CN", E);
59
+ const P = y(), l = y(), g = y(!1), f = y(!1);
60
+ async function W(n) {
61
+ var a, e;
61
62
  const s = n.getElementsByTagName("img");
62
- for (let a of s) {
63
- const t = a.src;
64
- if (t.startsWith("http://") || t.startsWith("https://")) {
65
- const r = await M(t);
66
- if (r.width < i.imageMinWidth && r.height < i.imageMinHeight || r.width > i.imageMaxWidth && r.height > i.imageMaxHeight) {
67
- (o = a == null ? void 0 : a.remove) == null || o.call(a);
63
+ for (let o of s) {
64
+ const i = o.src;
65
+ if (i.startsWith("http://") || i.startsWith("https://")) {
66
+ const r = await M(i);
67
+ if (r.width < t.imageMinWidth && r.height < t.imageMinHeight || r.width > t.imageMaxWidth && r.height > t.imageMaxHeight) {
68
+ (a = o == null ? void 0 : o.remove) == null || a.call(o);
68
69
  return;
69
70
  }
70
- const w = t.split("."), C = w[w.length - 1].toLowerCase();
71
- if (!i.imageAllowedType.includes(C)) {
72
- (e = a == null ? void 0 : a.remove) == null || e.call(a);
71
+ const x = i.split("."), C = x[x.length - 1].toLowerCase();
72
+ if (!t.imageAllowedType.includes(C)) {
73
+ (e = o == null ? void 0 : o.remove) == null || e.call(o);
73
74
  return;
74
75
  }
75
76
  }
76
77
  }
77
78
  }
78
- const H = (n) => {
79
- const s = n.split(","), o = s[0].match(/:(.*?);/)[1], e = atob(s[1]);
80
- let a = e.length;
81
- const t = new Uint8Array(a);
82
- for (; a--; )
83
- t[a] = e.charCodeAt(a);
84
- return new Blob([t], { type: o });
79
+ const A = (n) => {
80
+ const s = n.split(","), a = s[0].match(/:(.*?);/)[1], e = atob(s[1]);
81
+ let o = e.length;
82
+ const i = new Uint8Array(o);
83
+ for (; o--; )
84
+ i[o] = e.charCodeAt(o);
85
+ return new Blob([i], { type: a });
85
86
  };
86
87
  function M(n) {
87
88
  return new Promise((s) => {
88
- const o = new Image();
89
- o.onload = function() {
90
- s({ width: o.width, height: o.height, image: o });
91
- }, o.src = n;
89
+ const a = new Image();
90
+ a.onload = function() {
91
+ s({ width: a.width, height: a.height, image: a });
92
+ }, a.src = n;
92
93
  });
93
94
  }
94
- function T(n, s) {
95
- return new Promise((o) => {
96
- new L(n, {
95
+ function H(n, s) {
96
+ return new Promise((a) => {
97
+ new q(n, {
97
98
  ...s,
98
99
  success: async (e) => {
99
- o({ success: !0, file: e });
100
+ a({ success: !0, file: e });
100
101
  },
101
102
  error(e) {
102
- o({ success: !1, error: e });
103
+ a({ success: !1, error: e });
103
104
  }
104
105
  });
105
106
  });
106
107
  }
107
- const h = z(
108
- () => _([i.paste_preprocess, d.paste_preprocess], {
108
+ const h = k(
109
+ () => _([t.paste_preprocess, d.paste_preprocess], {
109
110
  type: Function
110
111
  })
111
- ), v = z(
112
- () => _([i.paste_postprocess, d.paste_postprocess], {
112
+ ), v = k(
113
+ () => _([t.paste_postprocess, d.paste_postprocess], {
113
114
  type: Function
114
115
  })
115
- ), c = z(
116
- () => _([i.imageUploadHandle, d.imageUploadHandle], {
116
+ ), c = k(
117
+ () => _([t.imageUploadHandle, d.imageUploadHandle], {
117
118
  type: Function
118
119
  })
119
120
  );
120
- return F(() => {
121
+ return L(() => {
121
122
  const n = {
122
- /** 需要配置到外部 */
123
123
  // 设置语言
124
- // language_url: '/tinymce/langs/zh_CN.js',
125
124
  language: "zh_CN",
126
- /** 需要配置到外部 */
127
125
  // 实例
128
- target: W.value,
126
+ target: P.value,
129
127
  // 隐藏品牌
130
128
  branding: !1,
131
129
  // 隐藏右上角升级按钮
@@ -134,6 +132,8 @@ const ke = /* @__PURE__ */ $({
134
132
  placeholder: "请输入",
135
133
  // 许可证
136
134
  license_key: "gpl",
135
+ // 不从URL加载content_css
136
+ content_css: !1,
137
137
  // 默认屏蔽 iframe 原因:
138
138
  // - 允许用户引入未知的 iframe 存在执行未知脚本等安全隐患
139
139
  // - 小程序侧不支持 iframe
@@ -188,87 +188,90 @@ const ke = /* @__PURE__ */ $({
188
188
  paste_webkit_styles: "all",
189
189
  paste_data_images: !0,
190
190
  // 粘贴前处理
191
- paste_preprocess(o, e) {
192
- var a;
193
- e.content = e.content.replace(/<video[^>]*(?:\/>|>[\s\S]*?<\/video>)/g, ""), e.content = e.content.replace(/<audio[^>]*(?:\/>|>[\s\S]*?<\/audio>)/g, ""), e.content = e.content.replace(/<nav/g, "<div").replace(/<\/nav>/g, "</div>"), e.content = e.content.replace(/<header/g, "<div").replace(/<\/header>/g, "</div>"), e.content = e.content.replace(/<footer/g, "<div").replace(/<\/footer>/g, "</div>"), e.content = e.content.replace(/<aside/g, "<div").replace(/<\/aside>/g, "</div>"), e.content = e.content.replace(/<section/g, "<div").replace(/<\/section>/g, "</div>"), e.content = e.content.replace(/<main/g, "<div").replace(/<\/main>/g, "</div>"), e.content = e.content.replace(/<article/g, "<div").replace(/<\/article>/g, "</div>"), e.content = e.content.replace(/<details/g, "<div").replace(/<\/details>/g, "</div>"), (a = h.value) == null || a.call(h, o, e);
191
+ paste_preprocess(a, e) {
192
+ var o;
193
+ e.content = e.content.replace(/<video[^>]*(?:\/>|>[\s\S]*?<\/video>)/g, ""), e.content = e.content.replace(/<audio[^>]*(?:\/>|>[\s\S]*?<\/audio>)/g, ""), e.content = e.content.replace(/<nav/g, "<div").replace(/<\/nav>/g, "</div>"), e.content = e.content.replace(/<header/g, "<div").replace(/<\/header>/g, "</div>"), e.content = e.content.replace(/<footer/g, "<div").replace(/<\/footer>/g, "</div>"), e.content = e.content.replace(/<aside/g, "<div").replace(/<\/aside>/g, "</div>"), e.content = e.content.replace(/<section/g, "<div").replace(/<\/section>/g, "</div>"), e.content = e.content.replace(/<main/g, "<div").replace(/<\/main>/g, "</div>"), e.content = e.content.replace(/<article/g, "<div").replace(/<\/article>/g, "</div>"), e.content = e.content.replace(/<details/g, "<div").replace(/<\/details>/g, "</div>"), (o = h.value) == null || o.call(h, a, e);
194
194
  },
195
195
  // 粘贴后处理(处理异步操作)
196
- paste_postprocess(o, e) {
197
- var t;
198
- const a = e.node;
199
- A(a), (t = v.value) == null || t.call(v, o, e);
196
+ paste_postprocess(a, e) {
197
+ var i;
198
+ const o = e.node;
199
+ W(o), (i = v.value) == null || i.call(v, a, e);
200
200
  },
201
- images_upload_handler(o) {
202
- return new Promise(async (e, a) => {
203
- var x, V, B;
204
- const t = (V = (x = d.message) == null ? void 0 : x.loading) == null ? void 0 : V.call(x);
205
- let r = o.blob();
206
- const w = o.base64(), C = o.filename(), P = r.name.split("."), R = P[P.length - 1].toLowerCase();
207
- if (r.size > i.imageMaxSize * 1024 * 1024)
208
- return t == null || t.close(), a({ message: `请上传大小不超过${i.imageMaxSize}M的图片`, remove: !0 });
209
- if (!i.imageAllowedMineType.includes(r.type))
210
- return t == null || t.close(), a({ message: `请上传格式为${i.imageAllowedType.map((u) => u.toUpperCase()).join("、")}的图片`, remove: !0 });
211
- const U = "data:" + r.type + ";base64," + w, p = await M(U);
212
- if (p.width < i.imageMinWidth && p.height < i.imageMinHeight || p.width > i.imageMaxWidth && p.height > i.imageMaxHeight)
213
- return t == null || t.close(), a({ message: `请上传像素不低于${i.imageMinWidth}*${i.imageMinHeight}且像素不高于${i.imageMaxWidth}*${i.imageMaxHeight}的图片`, remove: !0 });
214
- const l = {};
215
- ["image/heif", "image/heic", "image/webp"].includes(R) && (l.convertTypes = [r.type], l.convertSize = 0);
216
- const S = 5 * 1024 * 1024;
217
- if (r.size > S && (l.convertTypes = [r.type], l.convertSize = S, l.maxWidth = p.width * (S / r.size)), Object.keys(l).length > 0) {
218
- const u = await T(H(U), l);
201
+ images_upload_handler(a) {
202
+ return new Promise(async (e, o) => {
203
+ var w, V, B;
204
+ const i = (V = (w = d.message) == null ? void 0 : w.loading) == null ? void 0 : V.call(w);
205
+ let r = a.blob();
206
+ const x = a.base64(), C = a.filename(), T = r.name.split("."), F = T[T.length - 1].toLowerCase();
207
+ if (r.size > t.imageMaxSize * 1024 * 1024)
208
+ return i == null || i.close(), o({ message: `请上传大小不超过${t.imageMaxSize}M的图片`, remove: !0 });
209
+ if (!t.imageAllowedMineType.includes(r.type))
210
+ return i == null || i.close(), o({ message: `请上传格式为${t.imageAllowedType.map((u) => u.toUpperCase()).join("、")}的图片`, remove: !0 });
211
+ const U = "data:" + r.type + ";base64," + x, p = await M(U);
212
+ if (p.width < t.imageMinWidth && p.height < t.imageMinHeight || p.width > t.imageMaxWidth && p.height > t.imageMaxHeight)
213
+ return i == null || i.close(), o({ message: `请上传像素不低于${t.imageMinWidth}*${t.imageMinHeight}且像素不高于${t.imageMaxWidth}*${t.imageMaxHeight}的图片`, remove: !0 });
214
+ const m = {};
215
+ ["image/heif", "image/heic", "image/webp"].includes(F) && (m.convertTypes = [r.type], m.convertSize = 0);
216
+ const z = 5 * 1024 * 1024;
217
+ if (r.size > z && (m.convertTypes = [r.type], m.convertSize = z, m.maxWidth = p.width * (z / r.size)), Object.keys(m).length > 0) {
218
+ const u = await H(A(U), m);
219
219
  if (u.success)
220
220
  r = u.file;
221
221
  else
222
- return t == null || t.close(), a({ message: u.error, remove: !0 });
222
+ return i == null || i.close(), o({ message: u.error, remove: !0 });
223
223
  }
224
224
  if (!c.value)
225
- return t == null || t.close(), a({ message: "缺少图片上传配置", remove: !0 });
226
- const k = await ((B = c.value) == null ? void 0 : B.call(c, r, C));
227
- if (!k.success)
228
- return t == null || t.close(), a({ message: k.errorMessage, remove: !0 });
229
- t == null || t.close(), e(k.url);
225
+ return i == null || i.close(), o({ message: "缺少图片上传配置", remove: !0 });
226
+ const S = await ((B = c.value) == null ? void 0 : B.call(c, r, C, { extParameters: t.extParameters }));
227
+ if (!S.success)
228
+ return i == null || i.close(), o({ message: S.errorMessage, remove: !0 });
229
+ i == null || i.close(), e(S.url);
230
230
  });
231
231
  }
232
232
  }, s = _(
233
233
  [
234
- i.options,
234
+ t.options,
235
235
  d.tinymceOptions,
236
236
  n
237
237
  ],
238
238
  {
239
- mergeFunction: (o, e) => (...a) => {
240
- o(...a), e(...a);
239
+ mergeFunction: (a, e) => (...o) => {
240
+ a(...o), e(...o);
241
241
  },
242
242
  type: Object
243
243
  }
244
244
  );
245
- q.init(s).then(([o]) => {
245
+ R.init(s).then(([a]) => {
246
246
  var e;
247
- o.on("change input Redo Undo SetContent", () => {
247
+ a && (a.customProps = { ...t }, a.on("change input Redo Undo SetContent", () => {
248
248
  if (f.value) {
249
249
  f.value = !1;
250
250
  return;
251
251
  }
252
- g.value = !0, b("input", o.getContent()), b("update:modelValue", o.getContent());
253
- }), m.value = o, (e = i.initComplete) == null || e.call(i, { editorIns: o });
252
+ g.value = !0, b("input", a.getContent()), b("update:modelValue", a.getContent());
253
+ }), (e = t.initComplete) == null || e.call(t, { editorIns: a }), l.value = a);
254
254
  });
255
- }), N(() => {
255
+ }), j(() => {
256
256
  var n;
257
- (n = m.value) == null || n.destroy();
258
- }), j(
259
- () => [i.value, i.modelValue, m.value],
257
+ (n = l.value) == null || n.destroy();
258
+ }), O(() => [t.disabled, l.value], () => {
259
+ var n, s;
260
+ (s = (n = l.value) == null ? void 0 : n.mode) == null || s.set(t.disabled ? "readonly" : "design");
261
+ }, { immediate: !0 }), O(
262
+ () => [t.value, t.modelValue, l.value],
260
263
  () => {
261
264
  var n;
262
265
  if (g.value) {
263
266
  g.value = !1;
264
267
  return;
265
268
  }
266
- f.value = !0, (n = m.value) == null || n.setContent(i.value ? i.value : i.modelValue ? i.modelValue : "");
269
+ f.value = !0, (n = l.value) == null || n.setContent(t.value ? t.value : t.modelValue ? t.modelValue : "");
267
270
  },
268
271
  { immediate: !0 }
269
- ), { __sfc: !0, insRef: W, editorRef: m, preventSettingContent: g, preventUpdatingModelValue: f, props: i, emits: b, processPastedImage: A, dataURLtoBlob: H, getImagePixel: M, compressorImage: T, paste_preprocess: h, paste_postprocess: v, imageUploadHandle: c };
272
+ ), { __sfc: !0, insRef: P, editorRef: l, preventSettingContent: g, preventUpdatingModelValue: f, props: t, emits: b, processPastedImage: W, dataURLtoBlob: A, getImagePixel: M, compressorImage: H, paste_preprocess: h, paste_postprocess: v, imageUploadHandle: c };
270
273
  }
271
274
  });
272
275
  export {
273
- ke as default
276
+ ze as default
274
277
  };
package/es/index.d.ts CHANGED
@@ -10,7 +10,9 @@ interface TinymceEditorGlobalOptions {
10
10
  destroy?: () => void;
11
11
  };
12
12
  /** 图片上传请求处理,需要返回图片地址 */
13
- imageUploadHandle?: (file: File | Blob, filename: string) => Promise<{
13
+ imageUploadHandle?: (file: File | Blob, filename: string, options?: {
14
+ extParameters?: Record<string, any>;
15
+ }) => Promise<{
14
16
  success: boolean;
15
17
  url?: string;
16
18
  errorMessage?: string;
@@ -37,6 +39,12 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
37
39
  type: import('vue').PropType<string>;
38
40
  default: string;
39
41
  };
42
+ disabled: {
43
+ type: import('vue').PropType<boolean>;
44
+ };
45
+ extParameters: {
46
+ type: import('vue').PropType<Record<string, any>>;
47
+ };
40
48
  imageMaxSize: {
41
49
  type: import('vue').PropType<number>;
42
50
  default: number;
@@ -66,7 +74,9 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
66
74
  default: number;
67
75
  };
68
76
  imageUploadHandle: {
69
- type: import('vue').PropType<(file: File | Blob, filename: string) => Promise<{
77
+ type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
78
+ extParameters?: Record<string, any> | undefined;
79
+ } | undefined) => Promise<{
70
80
  success: boolean;
71
81
  url?: string | undefined;
72
82
  errorMessage?: string | undefined;
@@ -102,6 +112,12 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
102
112
  type: import('vue').PropType<string>;
103
113
  default: string;
104
114
  };
115
+ disabled: {
116
+ type: import('vue').PropType<boolean>;
117
+ };
118
+ extParameters: {
119
+ type: import('vue').PropType<Record<string, any>>;
120
+ };
105
121
  imageMaxSize: {
106
122
  type: import('vue').PropType<number>;
107
123
  default: number;
@@ -131,7 +147,9 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
131
147
  default: number;
132
148
  };
133
149
  imageUploadHandle: {
134
- type: import('vue').PropType<(file: File | Blob, filename: string) => Promise<{
150
+ type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
151
+ extParameters?: Record<string, any> | undefined;
152
+ } | undefined) => Promise<{
135
153
  success: boolean;
136
154
  url?: string | undefined;
137
155
  errorMessage?: string | undefined;
@@ -181,6 +199,12 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
181
199
  type: import('vue').PropType<string>;
182
200
  default: string;
183
201
  };
202
+ disabled: {
203
+ type: import('vue').PropType<boolean>;
204
+ };
205
+ extParameters: {
206
+ type: import('vue').PropType<Record<string, any>>;
207
+ };
184
208
  imageMaxSize: {
185
209
  type: import('vue').PropType<number>;
186
210
  default: number;
@@ -210,7 +234,9 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
210
234
  default: number;
211
235
  };
212
236
  imageUploadHandle: {
213
- type: import('vue').PropType<(file: File | Blob, filename: string) => Promise<{
237
+ type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
238
+ extParameters?: Record<string, any> | undefined;
239
+ } | undefined) => Promise<{
214
240
  success: boolean;
215
241
  url?: string | undefined;
216
242
  errorMessage?: string | undefined;
@@ -246,6 +272,12 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
246
272
  type: import('vue').PropType<string>;
247
273
  default: string;
248
274
  };
275
+ disabled: {
276
+ type: import('vue').PropType<boolean>;
277
+ };
278
+ extParameters: {
279
+ type: import('vue').PropType<Record<string, any>>;
280
+ };
249
281
  imageMaxSize: {
250
282
  type: import('vue').PropType<number>;
251
283
  default: number;
@@ -275,7 +307,9 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
275
307
  default: number;
276
308
  };
277
309
  imageUploadHandle: {
278
- type: import('vue').PropType<(file: File | Blob, filename: string) => Promise<{
310
+ type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
311
+ extParameters?: Record<string, any> | undefined;
312
+ } | undefined) => Promise<{
279
313
  success: boolean;
280
314
  url?: string | undefined;
281
315
  errorMessage?: string | undefined;
@@ -311,6 +345,12 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
311
345
  type: import('vue').PropType<string>;
312
346
  default: string;
313
347
  };
348
+ disabled: {
349
+ type: import('vue').PropType<boolean>;
350
+ };
351
+ extParameters: {
352
+ type: import('vue').PropType<Record<string, any>>;
353
+ };
314
354
  imageMaxSize: {
315
355
  type: import('vue').PropType<number>;
316
356
  default: number;
@@ -340,7 +380,9 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
340
380
  default: number;
341
381
  };
342
382
  imageUploadHandle: {
343
- type: import('vue').PropType<(file: File | Blob, filename: string) => Promise<{
383
+ type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
384
+ extParameters?: Record<string, any> | undefined;
385
+ } | undefined) => Promise<{
344
386
  success: boolean;
345
387
  url?: string | undefined;
346
388
  errorMessage?: string | undefined;
@@ -391,6 +433,12 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
391
433
  type: import('vue').PropType<string>;
392
434
  default: string;
393
435
  };
436
+ disabled: {
437
+ type: import('vue').PropType<boolean>;
438
+ };
439
+ extParameters: {
440
+ type: import('vue').PropType<Record<string, any>>;
441
+ };
394
442
  imageMaxSize: {
395
443
  type: import('vue').PropType<number>;
396
444
  default: number;
@@ -420,7 +468,9 @@ declare const TinymceEditor: import('vue/types/v3-component-public-instance').Co
420
468
  default: number;
421
469
  };
422
470
  imageUploadHandle: {
423
- type: import('vue').PropType<(file: File | Blob, filename: string) => Promise<{
471
+ type: import('vue').PropType<(file: File | Blob, filename: string, options?: {
472
+ extParameters?: Record<string, any> | undefined;
473
+ } | undefined) => Promise<{
424
474
  success: boolean;
425
475
  url?: string | undefined;
426
476
  errorMessage?: string | undefined;
@@ -0,0 +1,427 @@
1
+ declare const _default: {
2
+ '#': string;
3
+ Accessibility: string;
4
+ Accordion: string;
5
+ 'Accordion body...': string;
6
+ 'Accordion summary...': string;
7
+ Action: string;
8
+ Activity: string;
9
+ Address: string;
10
+ Advanced: string;
11
+ Align: string;
12
+ 'Align center': string;
13
+ 'Align left': string;
14
+ 'Align right': string;
15
+ Alignment: string;
16
+ 'Alignment {0}': string;
17
+ All: string;
18
+ 'Alternative description': string;
19
+ 'Alternative source': string;
20
+ 'Alternative source URL': string;
21
+ Anchor: string;
22
+ 'Anchor...': string;
23
+ Anchors: string;
24
+ 'Animals and Nature': string;
25
+ Arrows: string;
26
+ B: string;
27
+ 'Background color': string;
28
+ 'Background color {0}': string;
29
+ Black: string;
30
+ Block: string;
31
+ 'Block {0}': string;
32
+ Blockquote: string;
33
+ Blocks: string;
34
+ Blue: string;
35
+ 'Blue component': string;
36
+ Body: string;
37
+ Bold: string;
38
+ Border: string;
39
+ 'Border color': string;
40
+ 'Border style': string;
41
+ 'Border width': string;
42
+ Bottom: string;
43
+ 'Browse files': string;
44
+ 'Browse for an image': string;
45
+ 'Browse links': string;
46
+ 'Bullet list': string;
47
+ Cancel: string;
48
+ Caption: string;
49
+ Cell: string;
50
+ 'Cell padding': string;
51
+ 'Cell properties': string;
52
+ 'Cell spacing': string;
53
+ 'Cell styles': string;
54
+ 'Cell type': string;
55
+ Center: string;
56
+ Characters: string;
57
+ 'Characters (no spaces)': string;
58
+ Circle: string;
59
+ Class: string;
60
+ 'Clear formatting': string;
61
+ Close: string;
62
+ Code: string;
63
+ 'Code sample...': string;
64
+ 'Code view': string;
65
+ 'Color Picker': string;
66
+ 'Color swatch': string;
67
+ Cols: string;
68
+ Column: string;
69
+ 'Column clipboard actions': string;
70
+ 'Column group': string;
71
+ 'Column header': string;
72
+ 'Constrain proportions': string;
73
+ Copy: string;
74
+ 'Copy column': string;
75
+ 'Copy row': string;
76
+ 'Could not find the specified string.': string;
77
+ 'Could not load emojis': string;
78
+ Count: string;
79
+ Currency: string;
80
+ 'Current window': string;
81
+ 'Custom color': string;
82
+ 'Custom...': string;
83
+ Cut: string;
84
+ 'Cut column': string;
85
+ 'Cut row': string;
86
+ 'Dark Blue': string;
87
+ 'Dark Gray': string;
88
+ 'Dark Green': string;
89
+ 'Dark Orange': string;
90
+ 'Dark Purple': string;
91
+ 'Dark Red': string;
92
+ 'Dark Turquoise': string;
93
+ 'Dark Yellow': string;
94
+ Dashed: string;
95
+ 'Date/time': string;
96
+ 'Decrease indent': string;
97
+ Default: string;
98
+ 'Delete accordion': string;
99
+ 'Delete column': string;
100
+ 'Delete row': string;
101
+ 'Delete table': string;
102
+ Dimensions: string;
103
+ Disc: string;
104
+ Div: string;
105
+ Document: string;
106
+ Dotted: string;
107
+ Double: string;
108
+ 'Drop an image here': string;
109
+ 'Dropped file type is not supported': string;
110
+ Edit: string;
111
+ Embed: string;
112
+ Emojis: string;
113
+ 'Emojis...': string;
114
+ Error: string;
115
+ 'Error: Form submit field collision.': string;
116
+ 'Error: No form element found.': string;
117
+ 'Extended Latin': string;
118
+ 'Failed to initialize plugin: {0}': string;
119
+ 'Failed to load plugin url: {0}': string;
120
+ 'Failed to load plugin: {0} from url {1}': string;
121
+ 'Failed to upload image: {0}': string;
122
+ File: string;
123
+ Find: string;
124
+ 'Find (if searchreplace plugin activated)': string;
125
+ 'Find and Replace': string;
126
+ 'Find and replace...': string;
127
+ 'Find in selection': string;
128
+ 'Find whole words only': string;
129
+ Flags: string;
130
+ 'Focus to contextual toolbar': string;
131
+ 'Focus to element path': string;
132
+ 'Focus to menubar': string;
133
+ 'Focus to toolbar': string;
134
+ Font: string;
135
+ 'Font size {0}': string;
136
+ 'Font sizes': string;
137
+ 'Font {0}': string;
138
+ Fonts: string;
139
+ 'Food and Drink': string;
140
+ Footer: string;
141
+ Format: string;
142
+ 'Format {0}': string;
143
+ Formats: string;
144
+ Fullscreen: string;
145
+ G: string;
146
+ General: string;
147
+ Gray: string;
148
+ Green: string;
149
+ 'Green component': string;
150
+ Groove: string;
151
+ 'Handy Shortcuts': string;
152
+ Header: string;
153
+ 'Header cell': string;
154
+ 'Heading 1': string;
155
+ 'Heading 2': string;
156
+ 'Heading 3': string;
157
+ 'Heading 4': string;
158
+ 'Heading 5': string;
159
+ 'Heading 6': string;
160
+ Headings: string;
161
+ Height: string;
162
+ Help: string;
163
+ 'Hex color code': string;
164
+ Hidden: string;
165
+ 'Horizontal align': string;
166
+ 'Horizontal line': string;
167
+ 'Horizontal space': string;
168
+ ID: string;
169
+ 'ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.': string;
170
+ 'Image is decorative': string;
171
+ 'Image list': string;
172
+ 'Image title': string;
173
+ 'Image...': string;
174
+ 'ImageProxy HTTP error: Could not find Image Proxy': string;
175
+ 'ImageProxy HTTP error: Incorrect Image Proxy URL': string;
176
+ 'ImageProxy HTTP error: Rejected request': string;
177
+ 'ImageProxy HTTP error: Unknown ImageProxy error': string;
178
+ 'Increase indent': string;
179
+ Inline: string;
180
+ Insert: string;
181
+ 'Insert Template': string;
182
+ 'Insert accordion': string;
183
+ 'Insert column after': string;
184
+ 'Insert column before': string;
185
+ 'Insert date/time': string;
186
+ 'Insert image': string;
187
+ 'Insert link (if link plugin activated)': string;
188
+ 'Insert row after': string;
189
+ 'Insert row before': string;
190
+ 'Insert table': string;
191
+ 'Insert template...': string;
192
+ 'Insert video': string;
193
+ 'Insert/Edit code sample': string;
194
+ 'Insert/edit image': string;
195
+ 'Insert/edit link': string;
196
+ 'Insert/edit media': string;
197
+ 'Insert/edit video': string;
198
+ Inset: string;
199
+ 'Invalid hex color code: {0}': string;
200
+ 'Invalid input': string;
201
+ Italic: string;
202
+ Justify: string;
203
+ 'Keyboard Navigation': string;
204
+ Language: string;
205
+ 'Learn more...': string;
206
+ Left: string;
207
+ 'Left to right': string;
208
+ 'Light Blue': string;
209
+ 'Light Gray': string;
210
+ 'Light Green': string;
211
+ 'Light Purple': string;
212
+ 'Light Red': string;
213
+ 'Light Yellow': string;
214
+ 'Line height': string;
215
+ 'Link list': string;
216
+ 'Link...': string;
217
+ 'List Properties': string;
218
+ 'List properties...': string;
219
+ 'Loading emojis...': string;
220
+ 'Loading...': string;
221
+ 'Lower Alpha': string;
222
+ 'Lower Greek': string;
223
+ 'Lower Roman': string;
224
+ 'Match case': string;
225
+ Mathematical: string;
226
+ 'Media poster (Image URL)': string;
227
+ 'Media...': string;
228
+ 'Medium Blue': string;
229
+ 'Medium Gray': string;
230
+ 'Medium Purple': string;
231
+ 'Merge cells': string;
232
+ Middle: string;
233
+ 'Midnight Blue': string;
234
+ 'More...': string;
235
+ Name: string;
236
+ 'Navy Blue': string;
237
+ 'New document': string;
238
+ 'New window': string;
239
+ Next: string;
240
+ No: string;
241
+ 'No alignment': string;
242
+ 'No color': string;
243
+ 'Nonbreaking space': string;
244
+ None: string;
245
+ 'Numbered list': string;
246
+ OR: string;
247
+ Objects: string;
248
+ Ok: string;
249
+ 'Open help dialog': string;
250
+ 'Open link': string;
251
+ 'Open link in...': string;
252
+ 'Open popup menu for split buttons': string;
253
+ Orange: string;
254
+ Outset: string;
255
+ 'Page break': string;
256
+ Paragraph: string;
257
+ Paste: string;
258
+ 'Paste as text': string;
259
+ 'Paste column after': string;
260
+ 'Paste column before': string;
261
+ 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.': string;
262
+ 'Paste or type a link': string;
263
+ 'Paste row after': string;
264
+ 'Paste row before': string;
265
+ 'Paste your embed code below:': string;
266
+ People: string;
267
+ Plugins: string;
268
+ 'Plugins installed ({0}):': string;
269
+ 'Powered by {0}': string;
270
+ Pre: string;
271
+ Preferences: string;
272
+ Preformatted: string;
273
+ 'Premium plugins:': string;
274
+ 'Press the Up and Down arrow keys to resize the editor.': string;
275
+ 'Press the arrow keys to resize the editor.': string;
276
+ 'Press {0} for help': string;
277
+ Preview: string;
278
+ Previous: string;
279
+ Print: string;
280
+ 'Print...': string;
281
+ Purple: string;
282
+ Quotations: string;
283
+ R: string;
284
+ 'Range 0 to 255': string;
285
+ Red: string;
286
+ 'Red component': string;
287
+ Redo: string;
288
+ Remove: string;
289
+ 'Remove color': string;
290
+ 'Remove link': string;
291
+ Replace: string;
292
+ 'Replace all': string;
293
+ 'Replace with': string;
294
+ Resize: string;
295
+ 'Restore last draft': string;
296
+ 'Reveal or hide additional toolbar items': string;
297
+ 'Rich Text Area': string;
298
+ 'Rich Text Area. Press ALT-0 for help.': string;
299
+ 'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help': string;
300
+ Ridge: string;
301
+ Right: string;
302
+ 'Right to left': string;
303
+ Row: string;
304
+ 'Row clipboard actions': string;
305
+ 'Row group': string;
306
+ 'Row header': string;
307
+ 'Row properties': string;
308
+ 'Row type': string;
309
+ Rows: string;
310
+ Save: string;
311
+ 'Save (if save plugin activated)': string;
312
+ Scope: string;
313
+ Search: string;
314
+ 'Select all': string;
315
+ 'Select...': string;
316
+ Selection: string;
317
+ Shortcut: string;
318
+ 'Show blocks': string;
319
+ 'Show caption': string;
320
+ 'Show invisible characters': string;
321
+ Size: string;
322
+ Solid: string;
323
+ Source: string;
324
+ 'Source code': string;
325
+ 'Special Character': string;
326
+ 'Special character...': string;
327
+ 'Split cell': string;
328
+ Square: string;
329
+ 'Start list at number': string;
330
+ Strikethrough: string;
331
+ Style: string;
332
+ Subscript: string;
333
+ Superscript: string;
334
+ 'Switch to or from fullscreen mode': string;
335
+ Symbols: string;
336
+ 'System Font': string;
337
+ Table: string;
338
+ 'Table caption': string;
339
+ 'Table properties': string;
340
+ 'Table styles': string;
341
+ Template: string;
342
+ Templates: string;
343
+ Text: string;
344
+ 'Text color': string;
345
+ 'Text color {0}': string;
346
+ 'Text to display': string;
347
+ 'The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?': string;
348
+ 'The URL you entered seems to be an external link. Do you want to add the required http:// prefix?': string;
349
+ 'The URL you entered seems to be an external link. Do you want to add the required https:// prefix?': string;
350
+ Title: string;
351
+ 'To open the popup, press Shift+Enter': string;
352
+ 'Toggle accordion': string;
353
+ Tools: string;
354
+ Top: string;
355
+ 'Travel and Places': string;
356
+ Turquoise: string;
357
+ Underline: string;
358
+ Undo: string;
359
+ Upload: string;
360
+ 'Uploading image': string;
361
+ 'Upper Alpha': string;
362
+ 'Upper Roman': string;
363
+ Url: string;
364
+ 'User Defined': string;
365
+ Valid: string;
366
+ Version: string;
367
+ 'Vertical align': string;
368
+ 'Vertical space': string;
369
+ View: string;
370
+ 'Visual aids': string;
371
+ Warn: string;
372
+ White: string;
373
+ Width: string;
374
+ 'Word count': string;
375
+ Words: string;
376
+ 'Words: {0}': string;
377
+ Yellow: string;
378
+ Yes: string;
379
+ 'You are using {0}': string;
380
+ 'You have unsaved changes are you sure you want to navigate away?': string;
381
+ "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.": string;
382
+ alignment: string;
383
+ 'austral sign': string;
384
+ 'cedi sign': string;
385
+ 'colon sign': string;
386
+ 'cruzeiro sign': string;
387
+ 'currency sign': string;
388
+ 'dollar sign': string;
389
+ 'dong sign': string;
390
+ 'drachma sign': string;
391
+ 'euro-currency sign': string;
392
+ example: string;
393
+ formatting: string;
394
+ 'french franc sign': string;
395
+ 'german penny symbol': string;
396
+ 'guarani sign': string;
397
+ history: string;
398
+ 'hryvnia sign': string;
399
+ indentation: string;
400
+ 'indian rupee sign': string;
401
+ 'kip sign': string;
402
+ 'lira sign': string;
403
+ 'livre tournois sign': string;
404
+ 'manat sign': string;
405
+ 'mill sign': string;
406
+ 'naira sign': string;
407
+ 'new sheqel sign': string;
408
+ 'nordic mark sign': string;
409
+ 'peseta sign': string;
410
+ 'peso sign': string;
411
+ 'ruble sign': string;
412
+ 'rupee sign': string;
413
+ 'spesmilo sign': string;
414
+ styles: string;
415
+ 'tenge sign': string;
416
+ 'tugrik sign': string;
417
+ 'turkish lira sign': string;
418
+ 'won sign': string;
419
+ 'yen character': string;
420
+ 'yen/yuan character variant one': string;
421
+ 'yuan character': string;
422
+ 'yuan character, in hong kong and taiwan': string;
423
+ '{0} characters': string;
424
+ '{0} columns, {1} rows': string;
425
+ '{0} words': string;
426
+ };
427
+ export default _default;
package/es/langs/zh_CN.js CHANGED
@@ -1,6 +1,4 @@
1
- const u = () => {
2
- tinymce.addI18n("zh_CN", { "#": "#", Accessibility: "辅助功能", Accordion: "", "Accordion body...": "", "Accordion summary...": "", Action: "动作", Activity: "活动", Address: "地址", Advanced: "高级", Align: "对齐", "Align center": "居中对齐", "Align left": "左对齐", "Align right": "右对齐", Alignment: "对齐", "Alignment {0}": "", All: "全部", "Alternative description": "替代描述", "Alternative source": "镜像", "Alternative source URL": "替代来源网址", Anchor: "锚点", "Anchor...": "锚点...", Anchors: "锚点", "Animals and Nature": "动物和自然", Arrows: "箭头", B: "B", "Background color": "背景颜色", "Background color {0}": "", Black: "黑色", Block: "块", "Block {0}": "", Blockquote: "引文区块", Blocks: "样式", Blue: "蓝色", "Blue component": "白色部分", Body: "表体", Bold: "粗体", Border: "框线", "Border color": "框线颜色", "Border style": "边框样式", "Border width": "边框宽度", Bottom: "下方对齐", "Browse files": "", "Browse for an image": "浏览图像", "Browse links": "", "Bullet list": "无序列表", Cancel: "取消", Caption: "标题", Cell: "单元格", "Cell padding": "单元格内边距", "Cell properties": "单元格属性", "Cell spacing": "单元格外间距", "Cell styles": "单元格样式", "Cell type": "储存格别", Center: "居中", Characters: "字符", "Characters (no spaces)": "字符(无空格)", Circle: "空心圆", Class: "类型", "Clear formatting": "清除格式", Close: "关闭", Code: "代码", "Code sample...": "示例代码...", "Code view": "代码视图", "Color Picker": "选色器", "Color swatch": "颜色样本", Cols: "列", Column: "列", "Column clipboard actions": "列剪贴板操作", "Column group": "列组", "Column header": "列标题", "Constrain proportions": "保持比例", Copy: "复制", "Copy column": "复制列", "Copy row": "复制行", "Could not find the specified string.": "未找到搜索内容。", "Could not load emojis": "无法加载Emojis", Count: "计数", Currency: "货币", "Current window": "当前窗口", "Custom color": "自定义颜色", "Custom...": "自定义......", Cut: "剪切", "Cut column": "剪切列", "Cut row": "剪切行", "Dark Blue": "深蓝色", "Dark Gray": "深灰色", "Dark Green": "深绿色", "Dark Orange": "深橙色", "Dark Purple": "深紫色", "Dark Red": "深红色", "Dark Turquoise": "深蓝绿色", "Dark Yellow": "暗黄色", Dashed: "虚线", "Date/time": "日期/时间", "Decrease indent": "减少缩进", Default: "预设", "Delete accordion": "", "Delete column": "删除列", "Delete row": "删除行", "Delete table": "删除表格", Dimensions: "尺寸", Disc: "实心圆", Div: "Div", Document: "文档", Dotted: "虚线", Double: "双精度", "Drop an image here": "拖放一张图像至此", "Dropped file type is not supported": "此文件类型不支持拖放", Edit: "编辑", Embed: "内嵌", Emojis: "Emojis", "Emojis...": "Emojis...", Error: "错误", "Error: Form submit field collision.": "错误: 表单提交字段冲突。", "Error: No form element found.": "错误: 没有表单控件。", "Extended Latin": "拉丁语扩充", "Failed to initialize plugin: {0}": "插件初始化失败: {0}", "Failed to load plugin url: {0}": "插件加载失败 链接: {0}", "Failed to load plugin: {0} from url {1}": "插件加载失败: {0} 来自链接 {1}", "Failed to upload image: {0}": "图片上传失败: {0}", File: "文件", Find: "寻找", "Find (if searchreplace plugin activated)": "查找(如果查找替换插件已激活)", "Find and Replace": "查找和替换", "Find and replace...": "查找并替换...", "Find in selection": "在选区中查找", "Find whole words only": "全字匹配", Flags: "旗帜", "Focus to contextual toolbar": "移动焦点到上下文菜单", "Focus to element path": "移动焦点到元素路径", "Focus to menubar": "移动焦点到菜单栏", "Focus to toolbar": "移动焦点到工具栏", Font: "字体", "Font size {0}": "", "Font sizes": "字体大小", "Font {0}": "", Fonts: "字体", "Food and Drink": "食物和饮品", Footer: "表尾", Format: "格式", "Format {0}": "", Formats: "格式", Fullscreen: "全屏", G: "G", General: "一般", Gray: "灰色", Green: "绿色", "Green component": "绿色部分", Groove: "凹槽", "Handy Shortcuts": "快捷键", Header: "表头", "Header cell": "表头单元格", "Heading 1": "一级标题", "Heading 2": "二级标题", "Heading 3": "三级标题", "Heading 4": "四级标题", "Heading 5": "五级标题", "Heading 6": "六级标题", Headings: "标题", Height: "高度", Help: "帮助", "Hex color code": "十六进制颜色代码", Hidden: "隐藏", "Horizontal align": "水平对齐", "Horizontal line": "水平分割线", "Horizontal space": "水平间距", ID: "ID", "ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.": "ID应该以英文字母开头,后面只能有英文字母、数字、破折号、点、冒号或下划线。", "Image is decorative": "图像是装饰性的", "Image list": "图片清单", "Image title": "图片标题", "Image...": "图片...", "ImageProxy HTTP error: Could not find Image Proxy": "图片代理请求错误:无法找到图片代理", "ImageProxy HTTP error: Incorrect Image Proxy URL": "图片代理请求错误:图片代理地址错误", "ImageProxy HTTP error: Rejected request": "图片代理请求错误:请求被拒绝", "ImageProxy HTTP error: Unknown ImageProxy error": "图片代理请求错误:未知的图片代理错误", "Increase indent": "增加缩进", Inline: "文本", Insert: "插入", "Insert Template": "插入模板", "Insert accordion": "", "Insert column after": "在右侧插入列", "Insert column before": "在左侧插入列", "Insert date/time": "插入日期/时间", "Insert image": "插入图片", "Insert link (if link plugin activated)": "插入链接 (如果链接插件已激活)", "Insert row after": "在下方插入行", "Insert row before": "在上方插入行", "Insert table": "插入表格", "Insert template...": "插入模板...", "Insert video": "插入视频", "Insert/Edit code sample": "插入/编辑代码示例", "Insert/edit image": "插入/编辑图片", "Insert/edit link": "插入/编辑链接", "Insert/edit media": "插入/编辑媒体", "Insert/edit video": "插入/编辑视频", Inset: "嵌入", "Invalid hex color code: {0}": "十六进制颜色代码无效: {0}", "Invalid input": "无效输入", Italic: "斜体", Justify: "两端对齐", "Keyboard Navigation": "键盘指引", Language: "语言", "Learn more...": "了解更多...", Left: "左", "Left to right": "由左到右", "Light Blue": "浅蓝色", "Light Gray": "浅灰色", "Light Green": "浅绿色", "Light Purple": "浅紫色", "Light Red": "浅红色", "Light Yellow": "浅黄色", "Line height": "行高", "Link list": "链接清单", "Link...": "链接...", "List Properties": "列表属性", "List properties...": "标题字体属性", "Loading emojis...": "正在加载Emojis...", "Loading...": "加载中...", "Lower Alpha": "小写英文字母", "Lower Greek": "小写希腊字母", "Lower Roman": "小写罗马数字", "Match case": "大小写匹配", Mathematical: "数学", "Media poster (Image URL)": "封面(图片地址)", "Media...": "多媒体...", "Medium Blue": "中蓝色", "Medium Gray": "中灰色", "Medium Purple": "中紫色", "Merge cells": "合并单元格", Middle: "居中对齐", "Midnight Blue": "深蓝色", "More...": "更多...", Name: "名称", "Navy Blue": "海军蓝", "New document": "新建文档", "New window": "新窗口", Next: "下一个", No: "否", "No alignment": "未对齐", "No color": "无", "Nonbreaking space": "不间断空格", None: "无", "Numbered list": "有序列表", OR: "或", Objects: "物件", Ok: "确定", "Open help dialog": "打开帮助对话框", "Open link": "打开链接", "Open link in...": "链接打开位置...", "Open popup menu for split buttons": "打开弹出式菜单,用于拆分按钮", Orange: "橙色", Outset: "外置", "Page break": "分页符", Paragraph: "段落", Paste: "粘贴", "Paste as text": "粘贴为文本", "Paste column after": "粘贴后面的列", "Paste column before": "粘贴此列前", "Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。", "Paste or type a link": "粘贴或输入链接", "Paste row after": "粘贴行到下方", "Paste row before": "粘贴行到上方", "Paste your embed code below:": "将内嵌代码粘贴在下面:", People: "人类", Plugins: "插件", "Plugins installed ({0}):": "已安装插件 ({0}):", "Powered by {0}": "由{0}驱动", Pre: "前言", Preferences: "首选项", Preformatted: "预先格式化的", "Premium plugins:": "优秀插件:", "Press the Up and Down arrow keys to resize the editor.": "", "Press the arrow keys to resize the editor.": "", "Press {0} for help": "", Preview: "预览", Previous: "上一个", Print: "打印", "Print...": "打印...", Purple: "紫色", Quotations: "引用", R: "R", "Range 0 to 255": "范围0至255", Red: "红色", "Red component": "红色部分", Redo: "重做", Remove: "移除", "Remove color": "移除颜色", "Remove link": "移除链接", Replace: "替换", "Replace all": "替换全部", "Replace with": "替换为", Resize: "调整大小", "Restore last draft": "恢复上次的草稿", "Reveal or hide additional toolbar items": "", "Rich Text Area": "富文本区域", "Rich Text Area. Press ALT-0 for help.": "编辑区。按Alt+0键打开帮助。", "Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": "编辑区。按ALT-F9打开菜单,按ALT-F10打开工具栏,按ALT-0查看帮助", Ridge: "海脊座", Right: "右", "Right to left": "由右到左", Row: "行", "Row clipboard actions": "行剪贴板操作", "Row group": "行组", "Row header": "行头", "Row properties": "行属性", "Row type": "行类型", Rows: "行数", Save: "保存", "Save (if save plugin activated)": "保存(如果保存插件已激活)", Scope: "范围", Search: "搜索", "Select all": "全选", "Select...": "选择...", Selection: "选择", Shortcut: "快捷方式", "Show blocks": "显示区块边框", "Show caption": "显示标题", "Show invisible characters": "显示不可见字符", Size: "字号", Solid: "实线", Source: "源", "Source code": "源代码", "Special Character": "特殊字符", "Special character...": "特殊字符...", "Split cell": "拆分单元格", Square: "实心方块", "Start list at number": "以数字开始列表", Strikethrough: "删除线", Style: "样式", Subscript: "下标", Superscript: "上标", "Switch to or from fullscreen mode": "切换全屏模式", Symbols: "符号", "System Font": "系统字体", Table: "表格", "Table caption": "表格标题", "Table properties": "表格属性", "Table styles": "表格样式", Template: "模板", Templates: "模板", Text: "文字", "Text color": "文本颜色", "Text color {0}": "", "Text to display": "要显示的文本", "The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "你所填写的URL地址为邮件地址,需要加上mailto: 前缀吗?", "The URL you entered seems to be an external link. Do you want to add the required http:// prefix?": "你所填写的URL地址属于外部链接,需要加上http:// 前缀吗?", "The URL you entered seems to be an external link. Do you want to add the required https:// prefix?": "您输入的 URL 似乎是一个外部链接。您想添加所需的 https:// 前缀吗?", Title: "标题", "To open the popup, press Shift+Enter": "按Shitf+Enter键打开对话框", "Toggle accordion": "", Tools: "工具", Top: "上方对齐", "Travel and Places": "旅游和地点", Turquoise: "青绿色", Underline: "下划线", Undo: "撤销", Upload: "上传", "Uploading image": "上传图片", "Upper Alpha": "大写英文字母", "Upper Roman": "大写罗马数字", Url: "地址", "User Defined": "自定义", Valid: "有效", Version: "版本", "Vertical align": "垂直对齐", "Vertical space": "垂直间距", View: "查看", "Visual aids": "网格线", Warn: "警告", White: "白色", Width: "宽度", "Word count": "字数", Words: "单词", "Words: {0}": "字数:{0}", Yellow: "黄色", Yes: "是", "You are using {0}": "你正在使用 {0}", "You have unsaved changes are you sure you want to navigate away?": "你还有文档尚未保存,确定要离开?", "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.": "你的浏览器不支持打开剪贴板,请使用Ctrl+X/C/V等快捷键。", alignment: "对齐", "austral sign": "澳元符号", "cedi sign": "塞地符号", "colon sign": "冒号", "cruzeiro sign": "克鲁赛罗币符号", "currency sign": "货币符号", "dollar sign": "美元符号", "dong sign": "越南盾符号", "drachma sign": "德拉克马符号", "euro-currency sign": "欧元符号", example: "示例", formatting: "格式化", "french franc sign": "法郎符号", "german penny symbol": "德国便士符号", "guarani sign": "瓜拉尼符号", history: "历史", "hryvnia sign": "格里夫尼亚符号", indentation: "缩进", "indian rupee sign": "印度卢比", "kip sign": "老挝基普符号", "lira sign": "里拉符号", "livre tournois sign": "里弗弗尔符号", "manat sign": "马纳特符号", "mill sign": "密尔符号", "naira sign": "奈拉符号", "new sheqel sign": "新谢克尔符号", "nordic mark sign": "北欧马克", "peseta sign": "比塞塔符号", "peso sign": "比索符号", "ruble sign": "卢布符号", "rupee sign": "卢比符号", "spesmilo sign": "spesmilo符号", styles: "样式", "tenge sign": "坚戈符号", "tugrik sign": "图格里克符号", "turkish lira sign": "土耳其里拉", "won sign": "韩元符号", "yen character": "日元字样", "yen/yuan character variant one": "元字样(大写)", "yuan character": "人民币元字样", "yuan character, in hong kong and taiwan": "元字样(港台地区)", "{0} characters": "{0} 个字符", "{0} columns, {1} rows": "", "{0} words": "{0} 字" });
3
- };
1
+ const e = { "#": "#", Accessibility: "辅助功能", Accordion: "", "Accordion body...": "", "Accordion summary...": "", Action: "动作", Activity: "活动", Address: "地址", Advanced: "高级", Align: "对齐", "Align center": "居中对齐", "Align left": "左对齐", "Align right": "右对齐", Alignment: "对齐", "Alignment {0}": "", All: "全部", "Alternative description": "替代描述", "Alternative source": "镜像", "Alternative source URL": "替代来源网址", Anchor: "锚点", "Anchor...": "锚点...", Anchors: "锚点", "Animals and Nature": "动物和自然", Arrows: "箭头", B: "B", "Background color": "背景颜色", "Background color {0}": "", Black: "黑色", Block: "块", "Block {0}": "", Blockquote: "引文区块", Blocks: "样式", Blue: "蓝色", "Blue component": "白色部分", Body: "表体", Bold: "粗体", Border: "框线", "Border color": "框线颜色", "Border style": "边框样式", "Border width": "边框宽度", Bottom: "下方对齐", "Browse files": "", "Browse for an image": "浏览图像", "Browse links": "", "Bullet list": "无序列表", Cancel: "取消", Caption: "标题", Cell: "单元格", "Cell padding": "单元格内边距", "Cell properties": "单元格属性", "Cell spacing": "单元格外间距", "Cell styles": "单元格样式", "Cell type": "储存格别", Center: "居中", Characters: "字符", "Characters (no spaces)": "字符(无空格)", Circle: "空心圆", Class: "类型", "Clear formatting": "清除格式", Close: "关闭", Code: "代码", "Code sample...": "示例代码...", "Code view": "代码视图", "Color Picker": "选色器", "Color swatch": "颜色样本", Cols: "列", Column: "列", "Column clipboard actions": "列剪贴板操作", "Column group": "列组", "Column header": "列标题", "Constrain proportions": "保持比例", Copy: "复制", "Copy column": "复制列", "Copy row": "复制行", "Could not find the specified string.": "未找到搜索内容。", "Could not load emojis": "无法加载Emojis", Count: "计数", Currency: "货币", "Current window": "当前窗口", "Custom color": "自定义颜色", "Custom...": "自定义......", Cut: "剪切", "Cut column": "剪切列", "Cut row": "剪切行", "Dark Blue": "深蓝色", "Dark Gray": "深灰色", "Dark Green": "深绿色", "Dark Orange": "深橙色", "Dark Purple": "深紫色", "Dark Red": "深红色", "Dark Turquoise": "深蓝绿色", "Dark Yellow": "暗黄色", Dashed: "虚线", "Date/time": "日期/时间", "Decrease indent": "减少缩进", Default: "预设", "Delete accordion": "", "Delete column": "删除列", "Delete row": "删除行", "Delete table": "删除表格", Dimensions: "尺寸", Disc: "实心圆", Div: "Div", Document: "文档", Dotted: "虚线", Double: "双精度", "Drop an image here": "拖放一张图像至此", "Dropped file type is not supported": "此文件类型不支持拖放", Edit: "编辑", Embed: "内嵌", Emojis: "Emojis", "Emojis...": "Emojis...", Error: "错误", "Error: Form submit field collision.": "错误: 表单提交字段冲突。", "Error: No form element found.": "错误: 没有表单控件。", "Extended Latin": "拉丁语扩充", "Failed to initialize plugin: {0}": "插件初始化失败: {0}", "Failed to load plugin url: {0}": "插件加载失败 链接: {0}", "Failed to load plugin: {0} from url {1}": "插件加载失败: {0} 来自链接 {1}", "Failed to upload image: {0}": "图片上传失败: {0}", File: "文件", Find: "寻找", "Find (if searchreplace plugin activated)": "查找(如果查找替换插件已激活)", "Find and Replace": "查找和替换", "Find and replace...": "查找并替换...", "Find in selection": "在选区中查找", "Find whole words only": "全字匹配", Flags: "旗帜", "Focus to contextual toolbar": "移动焦点到上下文菜单", "Focus to element path": "移动焦点到元素路径", "Focus to menubar": "移动焦点到菜单栏", "Focus to toolbar": "移动焦点到工具栏", Font: "字体", "Font size {0}": "", "Font sizes": "字体大小", "Font {0}": "", Fonts: "字体", "Food and Drink": "食物和饮品", Footer: "表尾", Format: "格式", "Format {0}": "", Formats: "格式", Fullscreen: "全屏", G: "G", General: "一般", Gray: "灰色", Green: "绿色", "Green component": "绿色部分", Groove: "凹槽", "Handy Shortcuts": "快捷键", Header: "表头", "Header cell": "表头单元格", "Heading 1": "一级标题", "Heading 2": "二级标题", "Heading 3": "三级标题", "Heading 4": "四级标题", "Heading 5": "五级标题", "Heading 6": "六级标题", Headings: "标题", Height: "高度", Help: "帮助", "Hex color code": "十六进制颜色代码", Hidden: "隐藏", "Horizontal align": "水平对齐", "Horizontal line": "水平分割线", "Horizontal space": "水平间距", ID: "ID", "ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.": "ID应该以英文字母开头,后面只能有英文字母、数字、破折号、点、冒号或下划线。", "Image is decorative": "图像是装饰性的", "Image list": "图片清单", "Image title": "图片标题", "Image...": "图片...", "ImageProxy HTTP error: Could not find Image Proxy": "图片代理请求错误:无法找到图片代理", "ImageProxy HTTP error: Incorrect Image Proxy URL": "图片代理请求错误:图片代理地址错误", "ImageProxy HTTP error: Rejected request": "图片代理请求错误:请求被拒绝", "ImageProxy HTTP error: Unknown ImageProxy error": "图片代理请求错误:未知的图片代理错误", "Increase indent": "增加缩进", Inline: "文本", Insert: "插入", "Insert Template": "插入模板", "Insert accordion": "", "Insert column after": "在右侧插入列", "Insert column before": "在左侧插入列", "Insert date/time": "插入日期/时间", "Insert image": "插入图片", "Insert link (if link plugin activated)": "插入链接 (如果链接插件已激活)", "Insert row after": "在下方插入行", "Insert row before": "在上方插入行", "Insert table": "插入表格", "Insert template...": "插入模板...", "Insert video": "插入视频", "Insert/Edit code sample": "插入/编辑代码示例", "Insert/edit image": "插入/编辑图片", "Insert/edit link": "插入/编辑链接", "Insert/edit media": "插入/编辑媒体", "Insert/edit video": "插入/编辑视频", Inset: "嵌入", "Invalid hex color code: {0}": "十六进制颜色代码无效: {0}", "Invalid input": "无效输入", Italic: "斜体", Justify: "两端对齐", "Keyboard Navigation": "键盘指引", Language: "语言", "Learn more...": "了解更多...", Left: "左", "Left to right": "由左到右", "Light Blue": "浅蓝色", "Light Gray": "浅灰色", "Light Green": "浅绿色", "Light Purple": "浅紫色", "Light Red": "浅红色", "Light Yellow": "浅黄色", "Line height": "行高", "Link list": "链接清单", "Link...": "链接...", "List Properties": "列表属性", "List properties...": "标题字体属性", "Loading emojis...": "正在加载Emojis...", "Loading...": "加载中...", "Lower Alpha": "小写英文字母", "Lower Greek": "小写希腊字母", "Lower Roman": "小写罗马数字", "Match case": "大小写匹配", Mathematical: "数学", "Media poster (Image URL)": "封面(图片地址)", "Media...": "多媒体...", "Medium Blue": "中蓝色", "Medium Gray": "中灰色", "Medium Purple": "中紫色", "Merge cells": "合并单元格", Middle: "居中对齐", "Midnight Blue": "深蓝色", "More...": "更多...", Name: "名称", "Navy Blue": "海军蓝", "New document": "新建文档", "New window": "新窗口", Next: "下一个", No: "否", "No alignment": "未对齐", "No color": "无", "Nonbreaking space": "不间断空格", None: "无", "Numbered list": "有序列表", OR: "或", Objects: "物件", Ok: "确定", "Open help dialog": "打开帮助对话框", "Open link": "打开链接", "Open link in...": "链接打开位置...", "Open popup menu for split buttons": "打开弹出式菜单,用于拆分按钮", Orange: "橙色", Outset: "外置", "Page break": "分页符", Paragraph: "段落", Paste: "粘贴", "Paste as text": "粘贴为文本", "Paste column after": "粘贴后面的列", "Paste column before": "粘贴此列前", "Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。", "Paste or type a link": "粘贴或输入链接", "Paste row after": "粘贴行到下方", "Paste row before": "粘贴行到上方", "Paste your embed code below:": "将内嵌代码粘贴在下面:", People: "人类", Plugins: "插件", "Plugins installed ({0}):": "已安装插件 ({0}):", "Powered by {0}": "由{0}驱动", Pre: "前言", Preferences: "首选项", Preformatted: "预先格式化的", "Premium plugins:": "优秀插件:", "Press the Up and Down arrow keys to resize the editor.": "", "Press the arrow keys to resize the editor.": "", "Press {0} for help": "", Preview: "预览", Previous: "上一个", Print: "打印", "Print...": "打印...", Purple: "紫色", Quotations: "引用", R: "R", "Range 0 to 255": "范围0至255", Red: "红色", "Red component": "红色部分", Redo: "重做", Remove: "移除", "Remove color": "移除颜色", "Remove link": "移除链接", Replace: "替换", "Replace all": "替换全部", "Replace with": "替换为", Resize: "调整大小", "Restore last draft": "恢复上次的草稿", "Reveal or hide additional toolbar items": "", "Rich Text Area": "富文本区域", "Rich Text Area. Press ALT-0 for help.": "编辑区。按Alt+0键打开帮助。", "Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": "编辑区。按ALT-F9打开菜单,按ALT-F10打开工具栏,按ALT-0查看帮助", Ridge: "海脊座", Right: "右", "Right to left": "由右到左", Row: "行", "Row clipboard actions": "行剪贴板操作", "Row group": "行组", "Row header": "行头", "Row properties": "行属性", "Row type": "行类型", Rows: "行数", Save: "保存", "Save (if save plugin activated)": "保存(如果保存插件已激活)", Scope: "范围", Search: "搜索", "Select all": "全选", "Select...": "选择...", Selection: "选择", Shortcut: "快捷方式", "Show blocks": "显示区块边框", "Show caption": "显示标题", "Show invisible characters": "显示不可见字符", Size: "字号", Solid: "实线", Source: "源", "Source code": "源代码", "Special Character": "特殊字符", "Special character...": "特殊字符...", "Split cell": "拆分单元格", Square: "实心方块", "Start list at number": "以数字开始列表", Strikethrough: "删除线", Style: "样式", Subscript: "下标", Superscript: "上标", "Switch to or from fullscreen mode": "切换全屏模式", Symbols: "符号", "System Font": "系统字体", Table: "表格", "Table caption": "表格标题", "Table properties": "表格属性", "Table styles": "表格样式", Template: "模板", Templates: "模板", Text: "文字", "Text color": "文本颜色", "Text color {0}": "", "Text to display": "要显示的文本", "The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "你所填写的URL地址为邮件地址,需要加上mailto: 前缀吗?", "The URL you entered seems to be an external link. Do you want to add the required http:// prefix?": "你所填写的URL地址属于外部链接,需要加上http:// 前缀吗?", "The URL you entered seems to be an external link. Do you want to add the required https:// prefix?": "您输入的 URL 似乎是一个外部链接。您想添加所需的 https:// 前缀吗?", Title: "标题", "To open the popup, press Shift+Enter": "按Shitf+Enter键打开对话框", "Toggle accordion": "", Tools: "工具", Top: "上方对齐", "Travel and Places": "旅游和地点", Turquoise: "青绿色", Underline: "下划线", Undo: "撤销", Upload: "上传", "Uploading image": "上传图片", "Upper Alpha": "大写英文字母", "Upper Roman": "大写罗马数字", Url: "地址", "User Defined": "自定义", Valid: "有效", Version: "版本", "Vertical align": "垂直对齐", "Vertical space": "垂直间距", View: "查看", "Visual aids": "网格线", Warn: "警告", White: "白色", Width: "宽度", "Word count": "字数", Words: "单词", "Words: {0}": "字数:{0}", Yellow: "黄色", Yes: "是", "You are using {0}": "你正在使用 {0}", "You have unsaved changes are you sure you want to navigate away?": "你还有文档尚未保存,确定要离开?", "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.": "你的浏览器不支持打开剪贴板,请使用Ctrl+X/C/V等快捷键。", alignment: "对齐", "austral sign": "澳元符号", "cedi sign": "塞地符号", "colon sign": "冒号", "cruzeiro sign": "克鲁赛罗币符号", "currency sign": "货币符号", "dollar sign": "美元符号", "dong sign": "越南盾符号", "drachma sign": "德拉克马符号", "euro-currency sign": "欧元符号", example: "示例", formatting: "格式化", "french franc sign": "法郎符号", "german penny symbol": "德国便士符号", "guarani sign": "瓜拉尼符号", history: "历史", "hryvnia sign": "格里夫尼亚符号", indentation: "缩进", "indian rupee sign": "印度卢比", "kip sign": "老挝基普符号", "lira sign": "里拉符号", "livre tournois sign": "里弗弗尔符号", "manat sign": "马纳特符号", "mill sign": "密尔符号", "naira sign": "奈拉符号", "new sheqel sign": "新谢克尔符号", "nordic mark sign": "北欧马克", "peseta sign": "比塞塔符号", "peso sign": "比索符号", "ruble sign": "卢布符号", "rupee sign": "卢比符号", "spesmilo sign": "spesmilo符号", styles: "样式", "tenge sign": "坚戈符号", "tugrik sign": "图格里克符号", "turkish lira sign": "土耳其里拉", "won sign": "韩元符号", "yen character": "日元字样", "yen/yuan character variant one": "元字样(大写)", "yuan character": "人民币元字样", "yuan character, in hong kong and taiwan": "元字样(港台地区)", "{0} characters": "{0} 个字符", "{0} columns, {1} rows": "", "{0} words": "{0} 字" };
4
2
  export {
5
- u as addI18n
3
+ e as default
6
4
  };
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.8-alpha.02",
5
+ "version": "0.0.10",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "es/index.js",
@@ -22,18 +22,10 @@
22
22
  "dependencies": {
23
23
  "compressorjs": "^1.2.1",
24
24
  "vue-global-config": "^0.2.6",
25
- "tinymce": "^7.1.0",
26
- "vue-demi": "^0.14.6"
25
+ "tinymce": "^7.1.0"
27
26
  },
28
- "devDependencies": {},
29
27
  "peerDependencies": {
30
- "@vue/composition-api": ">=1",
31
- "vue": "2"
32
- },
33
- "peerDependenciesMeta": {
34
- "@vue/composition-api": {
35
- "optional": true
36
- }
28
+ "vue": "^2.7.0"
37
29
  },
38
30
  "scripts": {
39
31
  "build": "vite build",
package/src/index.ts CHANGED
@@ -14,7 +14,9 @@ interface TinymceEditorGlobalOptions {
14
14
  destroy?: () => void
15
15
  }
16
16
  /** 图片上传请求处理,需要返回图片地址 */
17
- imageUploadHandle?: (file: File | Blob, filename: string) => Promise<{success: boolean; url?: string; errorMessage?: string}>;
17
+ imageUploadHandle?: (file: File | Blob, filename: string, options?: {
18
+ extParameters?: Record<string, any>
19
+ }) => Promise<{success: boolean; url?: string; errorMessage?: string}>;
18
20
  /** 接着默认配置进行处理 */
19
21
  paste_preprocess?: (editor: Editor, args: {
20
22
  content: string;