From 7d6f314513808def6c8b90de1b5a925010c14045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Mon, 5 Jun 2023 10:09:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/static/ckeditor/config.js | 13 +++++-------- static/ckeditor/config.js | 23 ----------------------- 2 files changed, 5 insertions(+), 31 deletions(-) delete mode 100644 static/ckeditor/config.js diff --git a/src/static/ckeditor/config.js b/src/static/ckeditor/config.js index 6f25e35a..18165a6b 100644 --- a/src/static/ckeditor/config.js +++ b/src/static/ckeditor/config.js @@ -5,17 +5,14 @@ CKEDITOR.editorConfig = function (config) { config.toolbarGroups = [ { name: 'document', groups: ['mode', 'document', 'doctools'] }, - { name: 'clipboard', groups: ['clipboard', 'undo'] }, + { name: 'clipboard', groups: ['undo', 'cleanup', 'clipboard'] }, + { name: 'styles', groups: ['styles'] }, + { name: 'colors', groups: ['colors'] }, + { name: 'paragraph', groups: ['align', 'paragraph', 'textindent', 'indent'] }, + { name: 'basicstyles', groups: ['basicstyles', 'list', 'bidi', 'blocks'] }, { name: 'editing', groups: ['find', 'selection', 'spellchecker', 'editing'] }, - { name: 'forms', groups: ['forms'] }, - { name: 'basicstyles', groups: ['basicstyles', 'cleanup', 'list', 'indent', 'blocks'] }, - '/', - { name: 'paragraph', groups: ['align', 'bidi', 'paragraph','textindent'] }, { name: 'links', groups: ['links'] }, { name: 'insert', groups: ['insert'] }, - '/', - { name: 'styles', groups: ['styles'] }, - { name: 'colors', groups: ['colors'] }, { name: 'tools', groups: ['tools'] } ]; config.height = 360; diff --git a/static/ckeditor/config.js b/static/ckeditor/config.js deleted file mode 100644 index 18165a6b..00000000 --- a/static/ckeditor/config.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. - * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license - */ -CKEDITOR.editorConfig = function (config) { - config.toolbarGroups = [ - { name: 'document', groups: ['mode', 'document', 'doctools'] }, - { name: 'clipboard', groups: ['undo', 'cleanup', 'clipboard'] }, - { name: 'styles', groups: ['styles'] }, - { name: 'colors', groups: ['colors'] }, - { name: 'paragraph', groups: ['align', 'paragraph', 'textindent', 'indent'] }, - { name: 'basicstyles', groups: ['basicstyles', 'list', 'bidi', 'blocks'] }, - { name: 'editing', groups: ['find', 'selection', 'spellchecker', 'editing'] }, - { name: 'links', groups: ['links'] }, - { name: 'insert', groups: ['insert'] }, - { name: 'tools', groups: ['tools'] } - ]; - config.height = 360; - config.removePlugins = 'exportpdf'; - config.extraPlugins = 'html5video,dedepagebreak,textindent'; - config.removeButtons = 'Save,NewPage,Print,Preview,Templates,Smiley,About,ShowBlocks,Iframe,Flash,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField'; - config.font_names='宋体/SimSun;楷体/KaiTi;黑体/SimHei;微软雅黑/Microsoft YaHei;微软正黑/Microsoft JhengHei'+ config.font_names; -}; \ No newline at end of file