2013-01-15 23:46:19 +01:00
|
|
|
/**
|
2016-06-09 18:39:54 +02:00
|
|
|
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
|
2016-08-12 16:47:13 +02:00
|
|
|
* For licensing, see LICENSE.md or http://ckeditor.com/license
|
2013-01-15 23:46:19 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
CKEDITOR.editorConfig = function( config ) {
|
2014-12-15 16:52:04 +01:00
|
|
|
// For the complete reference:
|
|
|
|
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
|
|
|
|
config.toolbarGroups = [
|
|
|
|
{ name: 'basicstyles', groups: [ 'basicstyles' ] },
|
|
|
|
{ name: 'colors' },
|
|
|
|
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] },
|
|
|
|
{ name: 'links' },
|
|
|
|
{ name: 'insert' },
|
|
|
|
{ name: 'editing', groups: [ 'spellchecker' ] },
|
|
|
|
{ name: 'styles' },
|
|
|
|
{ name: 'mode' }
|
|
|
|
];
|
2013-01-15 23:46:19 +01:00
|
|
|
|
2016-06-09 18:39:54 +02:00
|
|
|
config.removeButtons = 'Strike,Subscript,Superscript,BGColor,Anchor,Format,Image';
|
|
|
|
config.removeDialogTabs = 'link:advanced';
|
2014-12-15 16:52:04 +01:00
|
|
|
config.enterMode = CKEDITOR.ENTER_BR;
|
|
|
|
config.tabSpaces = 4;
|
|
|
|
config.allowedContent = true; // don't filter tags
|
2017-01-07 02:51:34 +01:00
|
|
|
config.entities = false;
|
2013-06-06 19:21:26 +02:00
|
|
|
|
2014-12-15 16:52:04 +01: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;
|
2013-06-06 19:21:26 +02:00
|
|
|
|
2014-12-15 16:52:04 +01:00
|
|
|
// 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;
|
2013-06-06 19:21:26 +02:00
|
|
|
|
2014-12-15 16:52:04 +01:00
|
|
|
// 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
|
|
|
};
|