Changeset 23767 for extensions


Ignore:
Timestamp:
Jul 4, 2013, 3:05:21 PM (11 years ago)
Author:
plg
Message:

new option $conffckeditor_toolbar_always_full (false by default, ie shows a Basic toolbar for album/photo/notification/banner descriptions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/FCKEditor/fckeditor.php

    r16767 r23767  
    88
    99  if (!isset($page['page'])) return $plugin_menu_links;
     10
     11  if (!isset($conf['fckeditor_toolbar_always_full']))
     12  {
     13    $conf['fckeditor_toolbar_always_full'] = false;
     14  }
    1015
    1116  $toolbar = 'Full';
     
    1924    $areas[] = 'comment';
    2025    $areas[] = 'mail_content';
    21     $toolbar = 'Basic';
     26    $toolbar = $conf['fckeditor_toolbar_always_full'] ? 'Full' : 'Basic';
    2227    $template->set_prefilter('album_properties', 'add_remove_button');
    2328  }
     
    2631  {
    2732    $areas[] = 'description';
    28     $toolbar = 'Basic';
     33    $toolbar = $conf['fckeditor_toolbar_always_full'] ? 'Full' : 'Basic';
    2934    $template->set_prefilter('picture_modify', 'add_remove_button');
    3035  }
     
    3338  {
    3439    $areas[] = 'send_customize_mail_content';
    35     $toolbar = 'Basic';
     40    $toolbar = $conf['fckeditor_toolbar_always_full'] ? 'Full' : 'Basic';
    3641    $template->set_prefilter('notification_by_mail', 'add_remove_button');
    3742  }
     
    4146    $areas[] = 'page_banner';
    4247    $width = '70%';
    43     $toolbar = 'Basic';
     48    $toolbar = $conf['fckeditor_toolbar_always_full'] ? 'Full' : 'Basic';
    4449    $template->set_prefilter('config', 'add_remove_button_banner');
    4550  }
Note: See TracChangeset for help on using the changeset viewer.