2014-02-07 07:22:39 +08:00
|
|
|
/**
|
|
|
|
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
|
|
|
|
* For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
|
|
*/
|
|
|
|
|
|
|
|
CKEDITOR.editorConfig = function( config ) {
|
|
|
|
// Define changes to default configuration here.
|
|
|
|
// For the complete reference:
|
|
|
|
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
|
|
|
|
|
|
|
|
// The toolbar groups arrangement, optimized for a single toolbar row.
|
|
|
|
config.toolbarGroups = [
|
|
|
|
{ name: 'styles' },
|
|
|
|
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
|
|
|
|
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
|
|
|
|
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
|
|
|
|
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
|
|
|
|
{ name: 'links' },
|
|
|
|
{ name: 'insert' },
|
|
|
|
{ name: 'colors' },
|
|
|
|
{ name: 'tools' },
|
2014-02-11 07:43:50 +08:00
|
|
|
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
|
2014-02-07 07:22:39 +08:00
|
|
|
{ name: 'others' }
|
|
|
|
];
|
|
|
|
|
|
|
|
// The default plugins included in the basic setup define some buttons that
|
|
|
|
// we don't want too have in a basic editor. We remove them here.
|
2014-02-11 07:43:50 +08:00
|
|
|
config.removeButtons = 'Format,Undo,Redo,Cut,Copy,Paste,Anchor,Strike,Subscript,Superscript,Image,Indent,Outdent,ToolbarSwitch,Source';
|
2014-02-07 07:22:39 +08:00
|
|
|
|
|
|
|
// Let's have it basic on dialogs as well.
|
2014-02-11 00:14:25 +08:00
|
|
|
config.removeDialogTabs = 'link:advanced;link:target;image:advanced';
|
2014-02-07 07:22:39 +08:00
|
|
|
|
|
|
|
config.stylesSet = false;
|
2014-02-11 00:14:25 +08:00
|
|
|
config.allowedContent = true;
|
2014-02-07 07:22:39 +08:00
|
|
|
|
|
|
|
config.autoParagraph = false;
|
|
|
|
config.enterMode = CKEDITOR.ENTER_BR;
|
|
|
|
config.shiftEnterMode = CKEDITOR.ENTER_P;
|
|
|
|
|
|
|
|
config.font_defaultLabel = 'Arial';
|
|
|
|
config.fontSize_defaultLabel = '12px';
|
|
|
|
};
|