| 1 | /** |
|---|
| 2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. |
|---|
| 3 | * For licensing, see LICENSE.md or http://ckeditor.com/license |
|---|
| 4 | */ |
|---|
| 5 | |
|---|
| 6 | CKEDITOR.editorConfig = function( config ) { |
|---|
| 7 | // Define changes to default configuration here. |
|---|
| 8 | // For complete reference see: |
|---|
| 9 | // http://docs.ckeditor.com/#!/api/CKEDITOR.config |
|---|
| 10 | |
|---|
| 11 | // The toolbar groups arrangement, optimized for a single toolbar row. |
|---|
| 12 | config.toolbarGroups = [ |
|---|
| 13 | { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, |
|---|
| 14 | { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, |
|---|
| 15 | { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] }, |
|---|
| 16 | { name: 'forms' }, |
|---|
| 17 | { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, |
|---|
| 18 | { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] }, |
|---|
| 19 | { name: 'links' }, |
|---|
| 20 | { name: 'insert' }, |
|---|
| 21 | { name: 'styles' }, |
|---|
| 22 | { name: 'colors' }, |
|---|
| 23 | { name: 'tools' }, |
|---|
| 24 | { name: 'others' }, |
|---|
| 25 | { name: 'about' } |
|---|
| 26 | ]; |
|---|
| 27 | |
|---|
| 28 | // The default plugins included in the basic setup define some buttons that |
|---|
| 29 | // are not needed in a basic editor. They are removed here. |
|---|
| 30 | config.removeButtons = 'Anchor,Underline,Strike,Subscript,Superscript,Link,Unlink,Styles,About,HorizontalRule,Blockquote,Italic,SpellChecker,SpecialChar,Format'; |
|---|
| 31 | |
|---|
| 32 | // Dialog windows are also simplified. |
|---|
| 33 | config.removeDialogTabs = 'link:advanced'; |
|---|
| 34 | |
|---|
| 35 | config.extraPlugins = 'onchange'; |
|---|
| 36 | }; |
|---|