From a670b0c082dcc5728ecf19e8d30b09c71f80b707 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期二, 26 十一月 2024 16:56:58 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/components/teditor/index.vue | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/teditor/index.vue b/src/components/teditor/index.vue index be0556d..8cde8c1 100644 --- a/src/components/teditor/index.vue +++ b/src/components/teditor/index.vue @@ -19,7 +19,7 @@ props: { value: { type: String, - default: () => { + default: (data) => { return ""; }, }, @@ -51,6 +51,7 @@ this.init() }, methods: { + // process.env.VUE_APP_PUBLIC_PATH + "/tinymce/langs/zh_CN.js" init() { const _this = this const initData = { @@ -58,9 +59,9 @@ "#" + this.tinymceId ), language_url: - process.env.VUE_APP_PUBLIC_PATH + "/tinymce/langs/zh_CN.js", // 璇█鍖呯殑璺緞锛屽叿浣撹矾寰勭湅鑷繁鐨勯」鐩紝鏂囨。鍚庨潰闄勪笂涓枃js鏂囦欢 + this.config.tinymceBaseUrl + "/tinymce/langs/zh_CN.js", // 璇█鍖呯殑璺緞锛屽叿浣撹矾寰勭湅鑷繁鐨勯」鐩紝鏂囨。鍚庨潰闄勪笂涓枃js鏂囦欢 language: "zh_CN", //璇█ - skin_url: process.env.VUE_APP_PUBLIC_PATH + "/tinymce/skins/ui/oxide", // skin璺緞锛屽叿浣撹矾寰勭湅鑷繁鐨勯」鐩� + skin_url: this.config.tinymceBaseUrl + "/tinymce/skins/ui/oxide", // skin璺緞锛屽叿浣撹矾寰勭湅鑷繁鐨勯」鐩� height: 400, //缂栬緫鍣ㄩ珮搴� branding: false, //鏄惁绂佺敤鈥淧owered by TinyMCE鈥� menubar: "edit insert format table", //椤堕儴鑿滃崟鏍忔樉绀� @@ -79,11 +80,11 @@ statusbar: false, file_picker_types: "file", content_css: - process.env.VUE_APP_PUBLIC_PATH + + this.config.tinymceBaseUrl + "/tinymce/skins/content/default/content.css", //浠ss鏂囦欢鏂瑰紡鑷畾涔夊彲缂栬緫鍖哄煙鐨刢ss鏍峰紡锛宑ss鏂囦欢闇�鑷繁鍒涘缓骞跺紩鍏� external_plugins: { "kityformula-editor": - process.env.VUE_APP_PUBLIC_PATH + + this.config.tinymceBaseUrl + "/tinymce/plugins/kityformula-editor/plugin.min.js", }, // 鏂囦欢涓婁紶 -- Gitblit v1.9.1