Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b857a9fc

Von Sven Schöling vor mehr als 7 Jahren hinzugefügt

  • ID b857a9fcba5c0f6f96cfc7d85308aab6860ca089
  • Vorgänger c59e85c3
  • Nachfolger 55a2f137

ckeditor update auf 4.7.2

Unterschiede anzeigen:

js/ckeditor/styles.js
1 1
/**
2
 * Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
2
 * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 3
 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 4
 */
5 5

  
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 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.
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 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
12
// 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.
22 24
	/*
......
43 45
		}
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' },
53 55
	{ name: 'Emphasis',			element: 'em'	, overrides: 'i' },
......
77 79
	{ name: 'Language: RTL',	element: 'span', attributes: { 'dir': 'rtl' } },
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' }
86 88
	},
87 89

  
88 90
	{
89
		name: 'Styled image (right)',
91
		name: 'Styled Image (right)',
90 92
		element: 'img',
91 93
		attributes: { 'class': 'right' }
92 94
	},
93 95

  
94 96
	{
95
		name: 'Compact table',
97
		name: 'Compact Table',
96 98
		element: 'table',
97 99
		attributes: {
98 100
			cellpadding: '5',
......
106 108
	},
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' }, group: 'size' },
123
	{ name: '360p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-360p' }, group: 'size' },
124
	{ name: '480p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-480p' }, group: 'size' },
125
	{ name: '720p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-720p' }, group: 'size' },
126
	{ name: '1080p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-1080p' }, group: 'size' },
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 http://dev.ckeditor.com/ticket/16664.
130
	{ name: '240p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-240p' }, group: 'size' },
131
	{ name: '360p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-360p' }, group: 'size' },
132
	{ name: '480p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-480p' }, group: 'size' },
133
	{ name: '720p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-720p' }, group: 'size' },
134
	{ name: '1080p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-1080p' }, group: 'size' }
135

  
110 136
] );
111 137

  

Auch abrufbar als: Unified diff