18e4316b059116d2441f16dcd61228e645cd3a78
2 * Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
6 // This file contains style definitions that can be used by CKEditor plugins.
8 // The most common use for it is the "stylescombo" plugin, which shows a combo
9 // in the editor toolbar, containing all styles. Other plugins instead, like
10 // the div plugin, use a subset of the styles on their feature.
12 // If you don't have plugins that depend on this file, you can simply ignore it.
13 // Otherwise it is strongly recommended to customize this file to match your
14 // website requirements and design properly.
16 CKEDITOR
.stylesSet
.add( 'default', [
19 // These styles are already available in the "Format" combo ("format" plugin),
20 // so they are not needed here by default. You may enable them to avoid
21 // placing the "Format" combo in the toolbar, maintaining the same features.
23 { name: 'Paragraph', element: 'p' },
24 { name: 'Heading 1', element: 'h1' },
25 { name: 'Heading 2', element: 'h2' },
26 { name: 'Heading 3', element: 'h3' },
27 { name: 'Heading 4', element: 'h4' },
28 { name: 'Heading 5', element: 'h5' },
29 { name: 'Heading 6', element: 'h6' },
30 { name: 'Preformatted Text',element: 'pre' },
31 { name: 'Address', element: 'address' },
34 { name
: 'Italic Title', element
: 'h2', styles
: { 'font-style': 'italic' } },
35 { name
: 'Subtitle', element
: 'h3', styles
: { 'color': '#aaa', 'font-style': 'italic' } },
37 name
: 'Special Container',
42 border
: '1px solid #ccc'
48 // These are core styles available as toolbar buttons. You may opt enabling
49 // some of them in the Styles combo, removing them from the toolbar.
50 // (This requires the "stylescombo" plugin)
52 { name: 'Strong', element: 'strong', overrides: 'b' },
53 { name: 'Emphasis', element: 'em' , overrides: 'i' },
54 { name: 'Underline', element: 'u' },
55 { name: 'Strikethrough', element: 'strike' },
56 { name: 'Subscript', element: 'sub' },
57 { name: 'Superscript', element: 'sup' },
60 { name
: 'Marker', element
: 'span', attributes
: { 'class': 'marker' } },
62 { name
: 'Big', element
: 'big' },
63 { name
: 'Small', element
: 'small' },
64 { name
: 'Typewriter', element
: 'tt' },
66 { name
: 'Computer Code', element
: 'code' },
67 { name
: 'Keyboard Phrase', element
: 'kbd' },
68 { name
: 'Sample Text', element
: 'samp' },
69 { name
: 'Variable', element
: 'var' },
71 { name
: 'Deleted Text', element
: 'del' },
72 { name
: 'Inserted Text', element
: 'ins' },
74 { name
: 'Cited Work', element
: 'cite' },
75 { name
: 'Inline Quotation', element
: 'q' },
77 { name
: 'Language: RTL', element
: 'span', attributes
: { 'dir': 'rtl' } },
78 { name
: 'Language: LTR', element
: 'span', attributes
: { 'dir': 'ltr' } },
83 name
: 'Styled image (left)',
85 attributes
: { 'class': 'left' }
89 name
: 'Styled image (right)',
91 attributes
: { 'class': 'right' }
95 name
: 'Compact table',
104 'border-collapse': 'collapse'
108 { name
: 'Borderless Table', element
: 'table', styles
: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },
109 { name
: 'Square Bulleted List', element
: 'ul', styles
: { 'list-style-type': 'square' } }