]> git.parisson.com Git - mezzo.git/commitdiff
Add button styles to TinyMCE
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Thu, 15 Sep 2016 09:55:41 +0000 (11:55 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Thu, 15 Sep 2016 09:55:41 +0000 (11:55 +0200)
app/organization/core/static/js/tinymce_setup.js

index 835be6133e190e8a35b378fd814f10d148d02978..cdf41ac91b3ec0069603517b5d162af84b509215 100644 (file)
@@ -67,7 +67,16 @@ jQuery(function($) {
         content_css: [window.__tinymce_css, '/static/admin/css/organization.css'] ,
         valid_elements: "*[*]",
         style_formats: [
-          { title: 'Button Yellow', inline: 'a', classes: 'yellow_button'}
+          {
+            title: 'Boutons', items: [
+              { title: 'Boutons Jaune', selector: 'a', classes: 'wys-button'},
+              { title: 'Boutons Jaune Small', selector: 'a', classes: 'wys-button-small'},
+              { title: 'Boutons Jaune XSmall', selector: 'a', classes: 'wys-button-xsmall'},
+              { title: 'Boutons Noir', selector: 'a', classes: 'wys-button-black'},
+              { title: 'Boutons Noir Small', selector: 'a', classes: 'wys-button-black-small'},
+              { title: 'Boutons Noir XSmall', selector: 'a', classes: 'wys-button-black-xsmall'}
+            ]
+          }
         ],
         style_formats_merge: true
     })