server/php/basic/public_html/static/lib/ckeditor/styles.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
 * 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
// This file contains style definitions that can be used by CKEditor plugins.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     7
//
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     8
// The most common use for it is the "stylescombo" plugin, which shows a combo
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     9
// in the editor toolbar, containing all styles. Other plugins instead, like
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    10
// the div plugin, use a subset of the styles on their feature.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    11
//
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    12
// If you don't have plugins that depend on this file, you can simply ignore it.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    13
// Otherwise it is strongly recommended to customize this file to match your
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    14
// website requirements and design properly.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    15
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    16
CKEDITOR.stylesSet.add( 'default', [
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    17
	/* Block Styles */
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    18
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    19
	// These styles are already available in the "Format" combo ("format" plugin),
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    20
	// so they are not needed here by default. You may enable them to avoid
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    21
	// placing the "Format" combo in the toolbar, maintaining the same features.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    22
	/*
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    23
	{ name: 'Paragraph',		element: 'p' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    24
	{ name: 'Heading 1',		element: 'h1' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    25
	{ name: 'Heading 2',		element: 'h2' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    26
	{ name: 'Heading 3',		element: 'h3' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    27
	{ name: 'Heading 4',		element: 'h4' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    28
	{ name: 'Heading 5',		element: 'h5' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    29
	{ name: 'Heading 6',		element: 'h6' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    30
	{ name: 'Preformatted Text',element: 'pre' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    31
	{ name: 'Address',			element: 'address' },
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
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    34
	{ name: 'Italic Title',		element: 'h2', styles: { 'font-style': 'italic' } },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    35
	{ name: 'Subtitle',			element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    36
	{
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    37
		name: 'Special Container',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    38
		element: 'div',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    39
		styles: {
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    40
			padding: '5px 10px',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    41
			background: '#eee',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    42
			border: '1px solid #ccc'
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    43
		}
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    44
	},
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    45
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    46
	/* Inline Styles */
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    47
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    48
	// These are core styles available as toolbar buttons. You may opt enabling
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    49
	// some of them in the Styles combo, removing them from the toolbar.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    50
	// (This requires the "stylescombo" plugin)
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    51
	/*
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    52
	{ name: 'Strong',			element: 'strong', overrides: 'b' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    53
	{ name: 'Emphasis',			element: 'em'	, overrides: 'i' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    54
	{ name: 'Underline',		element: 'u' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    55
	{ name: 'Strikethrough',	element: 'strike' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    56
	{ name: 'Subscript',		element: 'sub' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    57
	{ name: 'Superscript',		element: 'sup' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    58
	*/
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    59
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    60
	{ name: 'Marker',			element: 'span', attributes: { 'class': 'marker' } },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    61
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    62
	{ name: 'Big',				element: 'big' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    63
	{ name: 'Small',			element: 'small' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    64
	{ name: 'Typewriter',		element: 'tt' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    65
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    66
	{ name: 'Computer Code',	element: 'code' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    67
	{ name: 'Keyboard Phrase',	element: 'kbd' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    68
	{ name: 'Sample Text',		element: 'samp' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    69
	{ name: 'Variable',			element: 'var' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    70
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    71
	{ name: 'Deleted Text',		element: 'del' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    72
	{ name: 'Inserted Text',	element: 'ins' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    73
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    74
	{ name: 'Cited Work',		element: 'cite' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    75
	{ name: 'Inline Quotation',	element: 'q' },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    76
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    77
	{ name: 'Language: RTL',	element: 'span', attributes: { 'dir': 'rtl' } },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    78
	{ name: 'Language: LTR',	element: 'span', attributes: { 'dir': 'ltr' } },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    79
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    80
	/* Object Styles */
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    81
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    82
	{
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    83
		name: 'Styled image (left)',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    84
		element: 'img',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    85
		attributes: { 'class': 'left' }
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    86
	},
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    87
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    88
	{
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    89
		name: 'Styled image (right)',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    90
		element: 'img',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    91
		attributes: { 'class': 'right' }
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    92
	},
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    93
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    94
	{
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    95
		name: 'Compact table',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    96
		element: 'table',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    97
		attributes: {
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    98
			cellpadding: '5',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    99
			cellspacing: '0',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   100
			border: '1',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   101
			bordercolor: '#ccc'
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   102
		},
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   103
		styles: {
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   104
			'border-collapse': 'collapse'
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   105
		}
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   106
	},
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   107
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   108
	{ name: 'Borderless Table',		element: 'table',	styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   109
	{ name: 'Square Bulleted List',	element: 'ul',		styles: { 'list-style-type': 'square' } }
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   110
] );
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
   111