2013-01-15 23:46:19 +01:00
|
|
|
/**
|
2013-06-06 19:21:26 +02:00
|
|
|
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
2013-01-15 23:46:19 +01:00
|
|
|
* For licensing, see LICENSE.html or http://ckeditor.com/license
|
|
|
|
*/
|
|
|
|
|
|
|
|
CKEDITOR.editorConfig = function( config ) {
|
2013-06-06 19:21:26 +02:00
|
|
|
config.toolbar = [
|
|
|
|
{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'TextColor' ] },
|
|
|
|
{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList',
|
|
|
|
'-',
|
|
|
|
'Outdent', 'Indent',
|
|
|
|
'-',
|
|
|
|
'JustifyLeft', 'JustifyCenter', 'JustifyRight' ] },
|
|
|
|
{ name: 'links', items: [ 'Link', 'Unlink' ] },
|
|
|
|
{ name: 'insert', items: [ 'Image' ] },
|
|
|
|
{ name: 'editing', items: [ 'Font', 'FontSize', 'Scayt' ] }
|
|
|
|
];
|
2013-01-15 23:46:19 +01:00
|
|
|
config.toolbarGroups = [
|
2013-06-06 19:21:26 +02:00
|
|
|
{ name: 'basicstyles' },
|
|
|
|
{ name: 'paragraph' },
|
2013-01-15 23:46:19 +01:00
|
|
|
{ name: 'links' },
|
|
|
|
{ name: 'insert' },
|
2013-06-06 19:21:26 +02:00
|
|
|
{ name: 'editing' }
|
2013-01-15 23:46:19 +01:00
|
|
|
];
|
|
|
|
|
2013-06-06 19:21:26 +02:00
|
|
|
config.removeDialogTabs = 'link:advanced;image:advanced';
|
2013-01-15 23:46:19 +01:00
|
|
|
config.enterMode = CKEDITOR.ENTER_BR;
|
2013-06-06 19:21:26 +02:00
|
|
|
|
|
|
|
// Disables the built-in words spell checker if browser provides one. Defaults to true.
|
|
|
|
// http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-disableNativeSpellChecker
|
|
|
|
//config.disableNativeSpellChecker = false;
|
|
|
|
|
|
|
|
// Whether to show the browser native context menu when the Ctrl or Meta (Mac) key is pressed on opening the context
|
|
|
|
// menu with the right mouse button click or the Menu key. Defaults to true.
|
|
|
|
// http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-browserContextMenuOnCtrl
|
|
|
|
//config.browserContextMenuOnCtrl = false;
|
|
|
|
|
|
|
|
// If enabled, turns on SCAYT automatically after loading the editor. Defaults to false.
|
|
|
|
// http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-scayt_autoStartup
|
|
|
|
//config.scayt_autoStartup = true;
|
2013-01-15 23:46:19 +01:00
|
|
|
};
|