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