1
|
/**
|
2
|
* @module ckeditor
|
3
|
* @version see info.php of this module
|
4
|
* @authors Michael Tenschert, Dietrich Roland Pehlke
|
5
|
* @copyright 2010-2011 Michael Tenschert, Dietrich Roland Pehlke
|
6
|
* @license GNU General Public License
|
7
|
* @license terms see info.php of this module
|
8
|
* @platform see info.php of this module
|
9
|
* @requirements PHP 5.2.x and higher
|
10
|
*/
|
11
|
|
12
|
// The set of styles for the <b>Styles</b> drop-down list.
|
13
|
CKEDITOR.stylesSet.add( 'wb', [
|
14
|
/* Block Styles */
|
15
|
|
16
|
// These styles are defined per editor.css in your template and can be found in "Format".
|
17
|
/*
|
18
|
{ name : 'Paragraph' , element : 'p' },
|
19
|
{ name : 'Heading 1' , element : 'h1' },
|
20
|
{ name : 'Heading 2' , element : 'h2' },
|
21
|
{ name : 'Heading 3' , element : 'h3' },
|
22
|
{ name : 'Heading 4' , element : 'h4' },
|
23
|
{ name : 'Heading 5' , element : 'h5' },
|
24
|
{ name : 'Heading 6' , element : 'h6' },
|
25
|
{ name : 'Preformatted Text', element : 'pre' },
|
26
|
{ name : 'Address' , element : 'address' },
|
27
|
*/
|
28
|
|
29
|
{ name: 'Blue Title', element: 'h3', styles: { 'color': 'Blue' } },
|
30
|
{ name: 'Red Title', element: 'h3', styles: { 'color': 'Red' } },
|
31
|
|
32
|
/* Inline Styles */
|
33
|
{ name: 'Marker: Yellow', element: 'span', styles: { 'background-color': 'Yellow' } },
|
34
|
{ name: 'Marker: Green', element: 'span', styles: { 'background-color': 'Lime' } },
|
35
|
|
36
|
// These are core styles available as toolbar buttons. You may opt enabling
|
37
|
// some of them in the Styles combo, removing them from the toolbar.
|
38
|
/*
|
39
|
|
40
|
{ name : 'Strong' , element : 'strong', overrides : 'b' },
|
41
|
{ name : 'Emphasis' , element : 'em' , overrides : 'i' },
|
42
|
{ name : 'Underline' , element : 'u' },
|
43
|
{ name : 'Strikethrough' , element : 'strike' },
|
44
|
{ name : 'Subscript' , element : 'sub' },
|
45
|
{ name : 'Superscript' , element : 'sup' },
|
46
|
*/
|
47
|
|
48
|
{ name : 'Big' , element : 'big' },
|
49
|
{ name : 'Small' , element : 'small' },
|
50
|
{ name : 'Typewriter' , element : 'tt' },
|
51
|
|
52
|
{ name : 'Computer Code' , element : 'code' },
|
53
|
{ name : 'Keyboard Phrase' , element : 'kbd' },
|
54
|
{ name : 'Sample Text' , element : 'samp' },
|
55
|
{ name : 'Variable' , element : 'var' },
|
56
|
|
57
|
{ name : 'Deleted Text' , element : 'del' },
|
58
|
{ name : 'Inserted Text' , element : 'ins' },
|
59
|
|
60
|
{ name : 'Cited Work' , element : 'cite' },
|
61
|
{ name : 'Inline Quotation' , element : 'q' },
|
62
|
|
63
|
{ name : 'Language: RTL' , element : 'span', attributes : { 'dir' : 'rtl' } },
|
64
|
{ name : 'Language: LTR' , element : 'span', attributes : { 'dir' : 'ltr' } },
|
65
|
|
66
|
/* Object Styles */
|
67
|
{
|
68
|
name: 'Image on Left',
|
69
|
element: 'img',
|
70
|
attributes: {
|
71
|
style: 'padding: 5px; margin-right: 5px',
|
72
|
border: '2',
|
73
|
align: 'left'
|
74
|
}
|
75
|
},
|
76
|
{
|
77
|
name : 'Image on Right',
|
78
|
element : 'img',
|
79
|
attributes :
|
80
|
{
|
81
|
'style' : 'padding: 5px; margin-left: 5px',
|
82
|
'border' : '2',
|
83
|
'align' : 'right'
|
84
|
}
|
85
|
}
|
86
|
|
87
|
] );
|