server/php/basic/public_html/static/lib/ckeditor/config.js
author rougeronj
Thu, 18 Jun 2015 16:54:57 +0200
changeset 504 3329b413db18
child 652 153f5d09a11a
permissions -rw-r--r--
add the new client libraries server side
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
504
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     1
/**
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     2
 * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     3
 * For licensing, see LICENSE.md or http://ckeditor.com/license
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     4
 */
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     5
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     6
CKEDITOR.editorConfig = function( config ) {
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     7
	// Define changes to default configuration here.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     8
	// For complete reference see:
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     9
	// http://docs.ckeditor.com/#!/api/CKEDITOR.config
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    10
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    11
	// The toolbar groups arrangement, optimized for two toolbar rows.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    12
	config.toolbarGroups = [
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    13
		{ name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    14
		{ name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    15
		{ name: 'links' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    16
		{ name: 'insert' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    17
		{ name: 'forms' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    18
		{ name: 'tools' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    19
		{ name: 'document',	   groups: [ 'mode', 'document', 'doctools' ] },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    20
		{ name: 'others' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    21
		'/',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    22
		{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    23
		{ name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    24
		{ name: 'styles' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    25
		{ name: 'colors' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    26
		{ name: 'about' }
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    27
	];
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    28
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    29
	// Remove some buttons provided by the standard plugins, which are
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    30
	// not needed in the Standard(s) toolbar.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    31
	config.removeButtons = 'Underline,Subscript,Superscript';
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    32
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    33
	// Set the most common block elements.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    34
	config.format_tags = 'p;h1;h2;h3;pre';
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    35
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    36
	// Simplify the dialog windows.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    37
	config.removeDialogTabs = 'image:advanced;link:advanced';
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    38
};