indvd00m@0: /** indvd00m@0: * Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. indvd00m@0: * For licensing, see LICENSE.md or http://ckeditor.com/license indvd00m@0: */ indvd00m@0: indvd00m@0: // This file contains style definitions that can be used by CKEditor plugins. indvd00m@0: // indvd00m@0: // The most common use for it is the "stylescombo" plugin which shows the Styles drop-down indvd00m@0: // list containing all styles in the editor toolbar. Other plugins, like indvd00m@0: // the "div" plugin, use a subset of the styles for their features. indvd00m@0: // indvd00m@0: // If you do not have plugins that depend on this file in your editor build, you can simply indvd00m@0: // ignore it. Otherwise it is strongly recommended to customize this file to match your indvd00m@0: // website requirements and design properly. indvd00m@0: // indvd00m@0: // For more information refer to: http://docs.ckeditor.com/#!/guide/dev_styles-section-style-rules indvd00m@0: indvd00m@0: CKEDITOR.stylesSet.add( 'default', [ indvd00m@0: /* Block styles */ indvd00m@0: indvd00m@0: // These styles are already available in the "Format" drop-down list ("format" plugin), indvd00m@0: // so they are not needed here by default. You may enable them to avoid indvd00m@0: // placing the "Format" combo in the toolbar, maintaining the same features. indvd00m@0: /* indvd00m@0: { name: 'Paragraph', element: 'p' }, indvd00m@0: { name: 'Heading 1', element: 'h1' }, indvd00m@0: { name: 'Heading 2', element: 'h2' }, indvd00m@0: { name: 'Heading 3', element: 'h3' }, indvd00m@0: { name: 'Heading 4', element: 'h4' }, indvd00m@0: { name: 'Heading 5', element: 'h5' }, indvd00m@0: { name: 'Heading 6', element: 'h6' }, indvd00m@0: { name: 'Preformatted Text',element: 'pre' }, indvd00m@0: { name: 'Address', element: 'address' }, indvd00m@0: */ indvd00m@0: indvd00m@0: { name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } }, indvd00m@0: { name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } }, indvd00m@0: { indvd00m@0: name: 'Special Container', indvd00m@0: element: 'div', indvd00m@0: styles: { indvd00m@0: padding: '5px 10px', indvd00m@0: background: '#eee', indvd00m@0: border: '1px solid #ccc' indvd00m@0: } indvd00m@0: }, indvd00m@0: indvd00m@0: /* Inline styles */ indvd00m@0: indvd00m@0: // These are core styles available as toolbar buttons. You may opt enabling indvd00m@0: // some of them in the Styles drop-down list, removing them from the toolbar. indvd00m@0: // (This requires the "stylescombo" plugin.) indvd00m@0: /* indvd00m@0: { name: 'Strong', element: 'strong', overrides: 'b' }, indvd00m@0: { name: 'Emphasis', element: 'em' , overrides: 'i' }, indvd00m@0: { name: 'Underline', element: 'u' }, indvd00m@0: { name: 'Strikethrough', element: 'strike' }, indvd00m@0: { name: 'Subscript', element: 'sub' }, indvd00m@0: { name: 'Superscript', element: 'sup' }, indvd00m@0: */ indvd00m@0: indvd00m@0: { name: 'Marker', element: 'span', attributes: { 'class': 'marker' } }, indvd00m@0: indvd00m@0: { name: 'Big', element: 'big' }, indvd00m@0: { name: 'Small', element: 'small' }, indvd00m@0: { name: 'Typewriter', element: 'tt' }, indvd00m@0: indvd00m@0: { name: 'Computer Code', element: 'code' }, indvd00m@0: { name: 'Keyboard Phrase', element: 'kbd' }, indvd00m@0: { name: 'Sample Text', element: 'samp' }, indvd00m@0: { name: 'Variable', element: 'var' }, indvd00m@0: indvd00m@0: { name: 'Deleted Text', element: 'del' }, indvd00m@0: { name: 'Inserted Text', element: 'ins' }, indvd00m@0: indvd00m@0: { name: 'Cited Work', element: 'cite' }, indvd00m@0: { name: 'Inline Quotation', element: 'q' }, indvd00m@0: indvd00m@0: { name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } }, indvd00m@0: { name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } }, indvd00m@0: indvd00m@0: /* Object styles */ indvd00m@0: indvd00m@0: { indvd00m@0: name: 'Styled Image (left)', indvd00m@0: element: 'img', indvd00m@0: attributes: { 'class': 'left' } indvd00m@0: }, indvd00m@0: indvd00m@0: { indvd00m@0: name: 'Styled Image (right)', indvd00m@0: element: 'img', indvd00m@0: attributes: { 'class': 'right' } indvd00m@0: }, indvd00m@0: indvd00m@0: { indvd00m@0: name: 'Compact Table', indvd00m@0: element: 'table', indvd00m@0: attributes: { indvd00m@0: cellpadding: '5', indvd00m@0: cellspacing: '0', indvd00m@0: border: '1', indvd00m@0: bordercolor: '#ccc' indvd00m@0: }, indvd00m@0: styles: { indvd00m@0: 'border-collapse': 'collapse' indvd00m@0: } indvd00m@0: }, indvd00m@0: indvd00m@0: { name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } }, indvd00m@0: { name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } }, indvd00m@0: indvd00m@0: /* Widget styles */ indvd00m@0: indvd00m@0: { name: 'Clean Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-clean' } }, indvd00m@0: { name: 'Grayscale Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-grayscale' } }, indvd00m@0: indvd00m@0: { name: 'Featured Snippet', type: 'widget', widget: 'codeSnippet', attributes: { 'class': 'code-featured' } }, indvd00m@0: indvd00m@0: { name: 'Featured Formula', type: 'widget', widget: 'mathjax', attributes: { 'class': 'math-featured' } }, indvd00m@0: indvd00m@0: { name: '240p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-240p' } }, indvd00m@0: { name: '360p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-360p' } }, indvd00m@0: { name: '480p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-480p' } }, indvd00m@0: { name: '720p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-720p' } }, indvd00m@0: { name: '1080p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-1080p' } }, indvd00m@0: indvd00m@0: // Adding space after the style name is an intended workaround. For now, there indvd00m@0: // is no option to create two styles with the same name for different widget types. See #16664. indvd00m@0: { name: '240p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-240p' } }, indvd00m@0: { name: '360p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-360p' } }, indvd00m@0: { name: '480p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-480p' } }, indvd00m@0: { name: '720p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-720p' } }, indvd00m@0: { name: '1080p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-1080p' } } indvd00m@0: indvd00m@0: ] ); indvd00m@0: