Example #1
0
 /**
  * @param $header
  * @param $location
  * @param $active_toolbar
  */
 function ui_config_wysiwyg($header, $location, $active_tab, $active_toolbar)
 {
     $this->headerText = $header;
     $this->locationHash = $location;
     $this->treeMode = 'sitemap';
     $this->tabs = array(array('id' => 'ckeditor-tab', 'caption' => NETCAT_SETTINGS_EDITOR_CKEDITOR, 'location' => "wysiwyg.ckeditor.settings"));
     if (nc_Editors::fckeditor_exists()) {
         $this->tabs[] = array('id' => 'fckeditor-tab', 'caption' => NETCAT_SETTINGS_EDITOR_FCKEDITOR, 'location' => "wysiwyg.fckeditor.settings");
     } else {
         $this->tabs[] = array('id' => 'dummy-tab', 'caption' => '', 'location' => "");
     }
     if ($active_tab == 'fckeditor-tab') {
         $this->activeTab = 'fckeditor-tab';
         $this->toolbar = array(array('id' => 'fckeditor-settings', 'caption' => NETCAT_WYSIWYG_CKEDITOR_SETTINGS_TAB_SETTINGS, 'location' => "wysiwyg.fckeditor.settings", 'group' => 'grp1'));
     } else {
         $this->activeTab = 'ckeditor-tab';
         $this->toolbar = array(array('id' => 'ckeditor-settings', 'caption' => NETCAT_WYSIWYG_CKEDITOR_SETTINGS_TAB_SETTINGS, 'location' => "wysiwyg.ckeditor.settings", 'group' => 'grp1'), array('id' => 'ckeditor-panels', 'caption' => NETCAT_WYSIWYG_CKEDITOR_SETTINGS_TAB_PANELS, 'location' => "wysiwyg.ckeditor.panels", 'group' => 'grp1'));
     }
     $this->activeToolbarButtons = array($active_toolbar);
 }