1 | /** |
---|
2 | * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. |
---|
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license |
---|
4 | */ |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | CKEDITOR.editorConfig = function ( config) { |
---|
10 | //Define changes to default configuration here. For example: |
---|
11 | //config.language = 'fr'; |
---|
12 | //config.uiColor = '#AADC6E'; |
---|
13 | //For inline style definition |
---|
14 | //config.stylesSet = true; |
---|
15 | //config.stylesSet = 'my_styles'; |
---|
16 | //config.stylesSet = [{ name : 'icon for video', element : 'a', styles : { |
---|
17 | // 'display': 'block', |
---|
18 | // 'margin': 'auto', |
---|
19 | // 'width': '31px', |
---|
20 | // 'height': '34px', |
---|
21 | // 'background-image': 'url(/i/modern/sprite/icon_video.png)', |
---|
22 | // 'border-bottom': 'none' |
---|
23 | // }}]; |
---|
24 | |
---|
25 | }; |
---|
26 | |
---|
27 | |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | CKEDITOR.stylesSet.add( 'my_styles', |
---|
32 | [ |
---|
33 | // Block-level styles |
---|
34 | { name : 'icon for video', element : 'a', styles : { |
---|
35 | 'display': 'block', |
---|
36 | 'margin': 'auto', |
---|
37 | 'width': '31px', |
---|
38 | 'height': '34px', |
---|
39 | 'background-image': 'url(/i/modern/sprite/icon_video.png)', |
---|
40 | 'border-bottom': 'none' |
---|
41 | } |
---|
42 | } |
---|
43 | |
---|
44 | ]); |
---|
45 | /*var StyleSet = CKEDITOR.stylesSet; |
---|
46 | |
---|
47 | //StyleSet.registered.default[]; |
---|
48 | a=({ name : 'icon for video', element : 'a', styles : { |
---|
49 | 'display': 'block', |
---|
50 | 'margin': 'auto', |
---|
51 | 'width': '31px', |
---|
52 | 'height': '34px', |
---|
53 | 'background-image': 'url(/i/modern/sprite/icon_video.png)', |
---|
54 | 'border-bottom': 'none' |
---|
55 | }}); |
---|
56 | ////CKEDITOR.stylesSet.load('my_styles');*/ |
---|
57 | console.log(CKEDITOR.stylesSet); |
---|