Introduction de règles de style spécifiques aux contenus pour utilisation via ckeditor.
[Plinn.git] / skins / generic / plinn_ckeditor_styles.js.dtml
1 // {
2 // name: 'Name displayed in the Styles drop-down list',
3 // element: 'HTML element name (for example "span")',
4 // styles: {
5 // 'css-style1': 'desired value',
6 // 'css-style2': 'desired value',
7 // ...
8 // }
9 // attributes: {
10 // 'attribute-name1': 'desired value',
11 // 'attribute-name2': 'desired value',
12 // ...
13 // }
14 // }
15 //The name and element values are required, while other values are optional.
16
17 CKEDITOR.stylesSet.add( 'plinn_styles', [
18 { name: 'Bloc arrondi',
19 element: 'div',
20 attributes : {'class' : 'rounded-corners'}
21 },
22 { name: 'Cellule arrondie',
23 element: 'td',
24 attributes : {'class' : 'rounded-corners'}
25 },
26 { name: 'Image arrondie',
27 element: 'img',
28 attributes : {'class' : 'rounded-corners'}
29 },
30
31 ]);