From: Benoît Pin Date: Tue, 22 Jul 2014 16:31:30 +0000 (+0200) Subject: Ajout styles pour l'éditeur ckeditor. X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/commitdiff_plain/55eea9a336dd3e6ad94e38822dbc49145e15424d?ds=inline;hp=a23495c46f185990eddd43e372d6b83fad403af4 Ajout styles pour l'éditeur ckeditor. --- diff --git a/skins/generic/plinn_ckeditor_styles.js.dtml b/skins/generic/plinn_ckeditor_styles.js.dtml new file mode 100644 index 0000000..2d4711e --- /dev/null +++ b/skins/generic/plinn_ckeditor_styles.js.dtml @@ -0,0 +1,26 @@ +// { +// name: 'Name displayed in the Styles drop-down list', +// element: 'HTML element name (for example "span")', +// styles: { +// 'css-style1': 'desired value', +// 'css-style2': 'desired value', +// ... +// } +// attributes: { +// 'attribute-name1': 'desired value', +// 'attribute-name2': 'desired value', +// ... +// } +// } +//The name and element values are required, while other values are optional. + +CKEDITOR.stylesSet.add( 'plinn_styles', [ + { name: 'Coins arrondis', + element: 'div', + attributes : {'class' : 'news_box'} + }, + { name: 'cellule arrondie', + element: 'td', + attributes : {'class' : 'news_box'} + }, +]);