From 6bbcc4fa355d104c9db78113f23ba19572886325 Mon Sep 17 00:00:00 2001 From: sa0ChunLuyu Date: Mon, 4 Dec 2023 17:17:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/components/Tinymce.vue | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/admin/src/components/Tinymce.vue b/admin/src/components/Tinymce.vue index 4b6c39a..a3f9d3d 100644 --- a/admin/src/components/Tinymce.vue +++ b/admin/src/components/Tinymce.vue @@ -29,17 +29,18 @@ const createTinymce = () => { tinymce.init({ selector: `#editor`, language: 'zh_CN', - plugins: "code image axupimgs", + plugins: "code image axupimgs codesample", toolbar: 'undo redo ' + - '| code axupimgs' + - '| formatselect fontselect fontsizeselect ' + - '| bold italic underline strikethrough ' + - '| alignleft aligncenter alignright alignjustify ' + - '| cut copy paste ' + - '| bullist numlist ' + - '| outdent indent ' + - '| blockquote removeformat ' + - '| subscript superscript', + '| codesample code ' + + '| axupimgs ' + + '| formatselect fontselect fontsizeselect ' + + '| forecolor backcolor bold italic underline strikethrough ' + + '| alignleft aligncenter alignright alignjustify ' + + '| cut copy paste ' + + '| bullist numlist ' + + '| outdent indent ' + + '| blockquote removeformat ' + + '| subscript superscript', menubar: false, width: 1000, height: 300,