From c4e77695c11681a159da35a94a1b66cf9d145c67 Mon Sep 17 00:00:00 2001
From: zhouwenxuan <1175765986@qq.com>
Date: 星期三, 13 十二月 2023 16:37:44 +0800
Subject: [PATCH] 专家库筛选问题
---
src/components/Tinymce/Tinymce.vue | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/components/Tinymce/Tinymce.vue b/src/components/Tinymce/Tinymce.vue
index a4ab141..a869ec2 100644
--- a/src/components/Tinymce/Tinymce.vue
+++ b/src/components/Tinymce/Tinymce.vue
@@ -46,7 +46,7 @@
},
toolbar: {
type: [String, Array],
- default: "undo redo | formatselect | upfile image bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | lists insertfile table | removeformat fullscreen "
+ default: " styleselect fontsizeselect | undo redo | upfile image bold italic | fontselect |alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | lists insertfile table | removeformat fullscreen "
}
},
data() {
@@ -56,6 +56,7 @@
language_url: "/tinymce/langs/zh_CN.js",
language: "zh_CN",
skin_url: "/tinymce/skins/ui/oxide", // skin路径
+ content_css: '/tinymce/skins/content/default/content.css',
height: 500, // 编辑器高度
branding: false, // 是否禁用“Powered by TinyMCE”
menubar: true, // 顶部菜单栏显示
@@ -64,10 +65,6 @@
relative_urls: false,
remove_script_host: true,
statusbar: false,
- // images_upload_handler: (blobInfo, success, failure) => {
- // console.log(blobInfo);
- // this.handleImgUpload(blobInfo, success, failure);
- // },
images_upload_handler: async (blobInfo, success, failure) => {
const formData = new FormData(); // 和后端协商后用formData格式进行传参
formData.append("file", blobInfo.blob());// 传递的参数
@@ -96,7 +93,7 @@
}
},
myValue: this.value,
- // content_css: '/tinymce/skins/content/default/content.css',
+
};
},
@@ -112,6 +109,7 @@
},
// 可以添加一些自己的自定义事件,如清空内容
clear() {
+
this.myValue = "";
},
},
--
Gitblit v1.9.2