2 * Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
\r
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
\r
6 // This file contains style definitions that can be used by CKEditor plugins.
\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
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
16 CKEDITOR.stylesSet.add( 'default', [
\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
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
34 { name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } },
\r
35 { name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } },
\r
37 name: 'Special Container',
\r
40 padding: '5px 10px',
\r
42 border: '1px solid #ccc'
\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
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
60 { name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
\r
62 { name: 'Big', element: 'big' },
\r
63 { name: 'Small', element: 'small' },
\r
64 { name: 'Typewriter', element: 'tt' },
\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
71 { name: 'Deleted Text', element: 'del' },
\r
72 { name: 'Inserted Text', element: 'ins' },
\r
74 { name: 'Cited Work', element: 'cite' },
\r
75 { name: 'Inline Quotation', element: 'q' },
\r
77 { name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },
\r
78 { name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } },
\r
83 name: 'Styled image (left)',
\r
85 attributes: { 'class': 'left' }
\r
89 name: 'Styled image (right)',
\r
91 attributes: { 'class': 'right' }
\r
95 name: 'Compact table',
\r
101 bordercolor: '#ccc'
\r
104 'border-collapse': 'collapse'
\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