Dotclear


Ignore:
Timestamp:
09/08/15 09:16:32 (10 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Users can now add a background text color button using ckeditor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcCKEditor/_post_config.php

    r3056 r3090  
    9696     CKEDITOR.plugins.addExternal('media',dotclear.dcckeditor_plugin_url+'/js/ckeditor-plugins/media/'); 
    9797     CKEDITOR.plugins.addExternal('img',dotclear.dcckeditor_plugin_url+'/js/ckeditor-plugins/img/'); 
     98     <?php if (!empty($dcckeditor_textcolor_button) || !empty($dcckeditor_background_textcolor_button)):?> 
     99     // button add "More Colors..." can be added if colordialog plugin is enabled 
     100     CKEDITOR.config.colorButton_enableMore = true; 
     101     <?php endif;?> 
    98102 
    99103<?php if (!empty($extraPlugins) && count($extraPlugins)>0) { 
     
    120124          // format tags 
    121125<?php if (!empty($dcckeditor_format_tags)):?> 
    122         format_tags: '<?php echo $dcckeditor_format_tags;?>', 
     126          format_tags: '<?php echo $dcckeditor_format_tags;?>', 
    123127<?php else:?> 
    124128          format_tags: 'p;h1;h2;h3;h4;h5;h6;pre;address', 
     
    178182                         'Source' 
    179183<?php if (!empty($dcckeditor_textcolor_button)):?> 
    180                 ,'TextColor' 
     184                         ,'TextColor' 
     185<?php endif;?> 
     186<?php if (!empty($dcckeditor_background_textcolor_button)):?> 
     187                         ,'BGColor' 
    181188<?php endif;?> 
    182189                    ] 
    183190               }, 
    184             { 
    185                 name: 'special', 
    186                 items: [ 
    187                     'Maximize' 
    188                 ] 
    189             }, 
     191               { 
     192                    name: 'special', 
     193                    items: [ 
     194                         'Maximize' 
     195                    ] 
     196               }, 
    190197               <?php // add extra buttons comming from dotclear plugins 
    191198               if (!empty($extraPlugins) && count($extraPlugins)>0) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map