From de546fde539ac6cc7b4aaceb58c83a0e473a5a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Thu, 29 Aug 2019 15:20:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9toolbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wysiwyg/config.js | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/wysiwyg/config.js b/wysiwyg/config.js index 82a09097..e7ba59d2 100644 --- a/wysiwyg/config.js +++ b/wysiwyg/config.js @@ -22,31 +22,35 @@ CKEDITOR.editorConfig = function( config ) { //config.scayt_sLang = 'de_DE'; //语法检查语言 //config.enterMode = CKEDITOR.ENTER_BR; config.allowedContent = true; + + config.toolbarGroups = [ - { name: 'undo', groups: [ 'Undo', 'Redo', ] }, - { name: 'styles', groups: [ 'styles' ] }, - { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, - { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] }, - { name: 'colors', groups: [ 'colors' ] }, - { name: 'forms', groups: [ 'forms' ] }, - { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] }, - { name: 'links', groups: [ 'links' ] }, - { name: 'insert', groups: [ 'insert' ] }, - { name: 'tools', groups: [ 'tools' ] }, - { name: 'others', groups: [ 'others' ] }, - { name: 'mode', groups: [ 'Source' ] }, - { name: 'about', groups: [ 'about' ] } - ]; + { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, + { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, + { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] }, + { name: 'forms', groups: [ 'forms' ] }, + { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, + { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] }, + '/', + { name: 'links', groups: [ 'links' ] }, + { name: 'insert', groups: [ 'insert' ] }, + { name: 'styles', groups: [ 'styles' ] }, + { name: 'colors', groups: [ 'colors' ] }, + { name: 'tools', groups: [ 'tools' ] }, + { name: 'others', groups: [ 'others' ] }, + { name: 'about', groups: [ 'about' ] } + ]; + + config.removeButtons = 'Print,Preview,NewPage,Save,Templates,SelectAll,TextField,Textarea,Select,Button,HiddenField,Form,Checkbox,Radio,NumberedList,BulletedList,CreateDiv,Language,Anchor,Flash,HorizontalRule,Smiley,SpecialChar,PageBreak,Iframe,ShowBlocks,About,BidiLtr,BidiRtl,searchCode,Copy,Cut'; - config.removeButtons = 'Save,NewPage,Preview,Cut,Copy,SelectAll,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,About,Flash,HorizontalRule,Smiley,SpecialChar,PageBreak,Iframe,Subscript,Superscript,Anchor,BidiLtr,BidiRtl,Language,CreateDiv,BulletedList,ShowBlocks,Styles'; config.extraPlugins= 'tableresize,uploadimage,image2,codemirror,hianamedia'; config.codemirror = { - showFormatButton: false, - showCommentButton: false, - showUncommentButton: false, - showAutoCompleteButton: false, + showFormatButton: false, + showCommentButton: false, + showUncommentButton: false, + showAutoCompleteButton: false, }; config.height=1024; config.width=1024;