mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
44 lines
1.5 KiB
JavaScript
44 lines
1.5 KiB
JavaScript
/**
|
|
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
|
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
|
|
*/
|
|
|
|
CKEDITOR.editorConfig = function( config ) {
|
|
// Define changes to default configuration here.
|
|
// For complete reference see:
|
|
// https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html
|
|
|
|
// The toolbar groups arrangement, optimized for two toolbar rows.
|
|
config.toolbarGroups = [
|
|
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
|
|
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
|
|
{ name: 'links' },
|
|
{ name: 'insert' },
|
|
{ name: 'forms' },
|
|
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
|
|
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
|
|
{ name: 'others' },
|
|
{ name: 'tools' },
|
|
'/',
|
|
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
|
|
{ name: 'colors' },
|
|
{ name: 'styles' },
|
|
{ name: 'about' }
|
|
];
|
|
|
|
config.removeButtons = 'Subscript,Superscript,Scayt,Anchor,Outdent,Indent,Blockquote,About,PasteFromWord';
|
|
config.removePlugins = 'elementspath';
|
|
config.resize_enabled = false;
|
|
config.toolbarCanCollapse = true;
|
|
config.toolbarStartupExpanded = false;
|
|
|
|
// Set the most common block elements.
|
|
config.format_tags = 'p;h1;h2;h3;pre';
|
|
|
|
// Simplify the dialog windows.
|
|
config.removeDialogTabs = 'image:advanced;link:advanced';
|
|
|
|
// Enable the browser spell checking
|
|
config.disableNativeSpellChecker = false;
|
|
};
|