Changeset 3410:e2e04005053c for plugins/dcCKEditor/js/ckeditor/styles.js
- Timestamp:
- 11/18/16 18:11:18 (9 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/js/ckeditor/styles.js
r3175 r3410 6 6 // This file contains style definitions that can be used by CKEditor plugins. 7 7 // 8 // The most common use for it is the "stylescombo" plugin , which shows a combo9 // in the editor toolbar, containing all styles. Other plugins instead, like10 // the div plugin, use a subset of the styles on their feature.8 // The most common use for it is the "stylescombo" plugin which shows the Styles drop-down 9 // list containing all styles in the editor toolbar. Other plugins, like 10 // the "div" plugin, use a subset of the styles for their features. 11 11 // 12 // If you do n'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 your12 // If you do not have plugins that depend on this file in your editor build, you can simply 13 // ignore it. Otherwise it is strongly recommended to customize this file to match your 14 14 // website requirements and design properly. 15 // 16 // For more information refer to: http://docs.ckeditor.com/#!/guide/dev_styles-section-style-rules 15 17 16 18 CKEDITOR.stylesSet.add( 'default', [ 17 /* Block Styles */19 /* Block styles */ 18 20 19 // These styles are already available in the "Format" combo("format" plugin),21 // These styles are already available in the "Format" drop-down list ("format" plugin), 20 22 // so they are not needed here by default. You may enable them to avoid 21 23 // placing the "Format" combo in the toolbar, maintaining the same features. … … 44 46 }, 45 47 46 /* Inline Styles */48 /* Inline styles */ 47 49 48 50 // 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 )51 // some of them in the Styles drop-down list, removing them from the toolbar. 52 // (This requires the "stylescombo" plugin.) 51 53 /* 52 54 { name: 'Strong', element: 'strong', overrides: 'b' }, … … 78 80 { name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } }, 79 81 80 /* Object Styles */82 /* Object styles */ 81 83 82 84 { 83 name: 'Styled image (left)',85 name: 'Styled Image (left)', 84 86 element: 'img', 85 87 attributes: { 'class': 'left' } … … 87 89 88 90 { 89 name: 'Styled image (right)',91 name: 'Styled Image (right)', 90 92 element: 'img', 91 93 attributes: { 'class': 'right' } … … 93 95 94 96 { 95 name: 'Compact table',97 name: 'Compact Table', 96 98 element: 'table', 97 99 attributes: { … … 107 109 108 110 { name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } }, 109 { name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } } 111 { name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } }, 112 113 /* Widget styles */ 114 115 { name: 'Clean Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-clean' } }, 116 { name: 'Grayscale Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-grayscale' } }, 117 118 { name: 'Featured Snippet', type: 'widget', widget: 'codeSnippet', attributes: { 'class': 'code-featured' } }, 119 120 { name: 'Featured Formula', type: 'widget', widget: 'mathjax', attributes: { 'class': 'math-featured' } }, 121 122 { name: '240p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-240p' } }, 123 { name: '360p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-360p' } }, 124 { name: '480p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-480p' } }, 125 { name: '720p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-720p' } }, 126 { name: '1080p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-1080p' } }, 127 128 // Adding space after the style name is an intended workaround. For now, there 129 // is no option to create two styles with the same name for different widget types. See #16664. 130 { name: '240p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-240p' } }, 131 { name: '360p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-360p' } }, 132 { name: '480p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-480p' } }, 133 { name: '720p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-720p' } }, 134 { name: '1080p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-1080p' } } 135 110 136 ] ); 111 137
Note: See TracChangeset
for help on using the changeset viewer.