From 83d28119e25b7b396fd2b0f1da1e95ed9728f437 Mon Sep 17 00:00:00 2001 From: zhaoxiaoqiang <287285524@qq.com> Date: Fri, 08 Sep 2023 14:24:42 +0800 Subject: [PATCH] 更换 --- src/components/Tinymce/index.vue | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Tinymce/index.vue b/src/components/Tinymce/index.vue index 60f2c59..cef88bd 100644 --- a/src/components/Tinymce/index.vue +++ b/src/components/Tinymce/index.vue @@ -16,9 +16,8 @@ import plugins from './plugins' import toolbar from './toolbar' import load from './dynamicLoadScript' - // why use this cdn, detail see https://github.com/PanJiaChen/tinymce-all-in-one -const tinymceCDN = 'https://cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.3/tinymce.min.js' +const tinymceCDN ='https://cdn.staticfile.org/tinymce/4.9.3/tinymce.min.js'; export default { name: 'Tinymce', @@ -116,7 +115,9 @@ const _this = this window.tinymce.init({ selector: `#${this.tinymceId}`, - language: this.languageTypeList['zh'], + // language: this.languageTypeList['zh'], + language: 'zh_CN', + language_url:require('./zh_CN.js'), height: this.height, body_class: 'panel-body ', object_resizing: false, -- Gitblit v1.8.0