2 * Copyright (c) 2003-2017, 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 the Styles drop-down
\r
9 // list containing all styles in the editor toolbar. Other plugins, like
\r
10 // the "div" plugin, use a subset of the styles for their features.
\r
12 // If you do not have plugins that depend on this file in your editor build, you can simply
\r
13 // ignore it. Otherwise it is strongly recommended to customize this file to match your
\r
14 // website requirements and design properly.
\r
16 // For more information refer to: http://docs.ckeditor.com/#!/guide/dev_styles-section-style-rules
\r
18 CKEDITOR.stylesSet.add( 'default', [
\r
21 // These styles are already available in the "Format" drop-down list ("format" plugin),
\r
22 // so they are not needed here by default. You may enable them to avoid
\r
23 // placing the "Format" combo in the toolbar, maintaining the same features.
\r
25 { name: 'Paragraph', element: 'p' },
\r
26 { name: 'Heading 1', element: 'h1' },
\r
27 { name: 'Heading 2', element: 'h2' },
\r
28 { name: 'Heading 3', element: 'h3' },
\r
29 { name: 'Heading 4', element: 'h4' },
\r
30 { name: 'Heading 5', element: 'h5' },
\r
31 { name: 'Heading 6', element: 'h6' },
\r
32 { name: 'Preformatted Text',element: 'pre' },
\r
33 { name: 'Address', element: 'address' },
\r
36 { name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } },
\r
37 { name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } },
\r
39 name: 'Special Container',
\r
42 padding: '5px 10px',
\r
44 border: '1px solid #ccc'
\r
50 // These are core styles available as toolbar buttons. You may opt enabling
\r
51 // some of them in the Styles drop-down list, removing them from the toolbar.
\r
52 // (This requires the "stylescombo" plugin.)
\r
54 { name: 'Strong', element: 'strong', overrides: 'b' },
\r
55 { name: 'Emphasis', element: 'em' , overrides: 'i' },
\r
56 { name: 'Underline', element: 'u' },
\r
57 { name: 'Strikethrough', element: 'strike' },
\r
58 { name: 'Subscript', element: 'sub' },
\r
59 { name: 'Superscript', element: 'sup' },
\r
62 { name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
\r
64 { name: 'Big', element: 'big' },
\r
65 { name: 'Small', element: 'small' },
\r
66 { name: 'Typewriter', element: 'tt' },
\r
68 { name: 'Computer Code', element: 'code' },
\r
69 { name: 'Keyboard Phrase', element: 'kbd' },
\r
70 { name: 'Sample Text', element: 'samp' },
\r
71 { name: 'Variable', element: 'var' },
\r
73 { name: 'Deleted Text', element: 'del' },
\r
74 { name: 'Inserted Text', element: 'ins' },
\r
76 { name: 'Cited Work', element: 'cite' },
\r
77 { name: 'Inline Quotation', element: 'q' },
\r
79 { name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },
\r
80 { name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } },
\r
85 name: 'Styled Image (left)',
\r
87 attributes: { 'class': 'left' }
\r
91 name: 'Styled Image (right)',
\r
93 attributes: { 'class': 'right' }
\r
97 name: 'Compact Table',
\r
103 bordercolor: '#ccc'
\r
106 'border-collapse': 'collapse'
\r
110 { name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },
\r
111 { name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } },
\r
113 /* Widget styles */
\r
115 { name: 'Clean Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-clean' } },
\r
116 { name: 'Grayscale Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-grayscale' } },
\r
118 { name: 'Featured Snippet', type: 'widget', widget: 'codeSnippet', attributes: { 'class': 'code-featured' } },
\r
120 { name: 'Featured Formula', type: 'widget', widget: 'mathjax', attributes: { 'class': 'math-featured' } },
\r
122 { name: '240p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-240p' }, group: 'size' },
\r
123 { name: '360p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-360p' }, group: 'size' },
\r
124 { name: '480p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-480p' }, group: 'size' },
\r
125 { name: '720p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-720p' }, group: 'size' },
\r
126 { name: '1080p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-1080p' }, group: 'size' },
\r
128 // Adding space after the style name is an intended workaround. For now, there
\r
129 // is no option to create two styles with the same name for different widget types. See http://dev.ckeditor.com/ticket/16664.
\r
130 { name: '240p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-240p' }, group: 'size' },
\r
131 { name: '360p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-360p' }, group: 'size' },
\r
132 { name: '480p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-480p' }, group: 'size' },
\r
133 { name: '720p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-720p' }, group: 'size' },
\r
134 { name: '1080p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-1080p' }, group: 'size' }
\r