diff --git a/src/components/Tinymce/index.vue b/src/components/Tinymce/index.vue index e29e336a..a5dd7a3f 100644 --- a/src/components/Tinymce/index.vue +++ b/src/components/Tinymce/index.vue @@ -61,6 +61,7 @@ export default { languageTypeList: { 'en': 'en', 'zh': 'zh_CN', + 'es': 'es_MX', 'ja': 'ja' } } @@ -107,7 +108,7 @@ export default { window.tinymce.init({ language: this.language, // language cnd URL, detail see https://github.com/PanJiaChen/tinymce-lang - language_url: `https://cdn.jsdelivr.net/npm/tinymce-lang/langs/${this.language}.js`, + language_url: this.language === 'en' ? '' : `https://cdn.jsdelivr.net/npm/tinymce-lang/langs/${this.language}.js`, selector: `#${this.tinymceId}`, height: this.height, body_class: 'panel-body ',