16 require_once dirname(__FILE__).
'/../../core/include/init.inc';
39 var $buttons = Array();
48 var $_show_in_toolbar = TRUE;
91 function _add_button($id, $cmd, $tooltip, $textmode, $position, $context=
'')
93 $this->buttons[$id][
'command'] = $cmd;
94 $this->buttons[$id][
'tooltip'] = $tooltip;
95 $this->buttons[$id][
'textmode'] = $textmode;
96 $this->buttons[$id][
'position'] = $position;
97 $this->buttons[$id][
'context'] = $context;
116 function _open_menu($id, $tooltip, $textmode, $position, $context=
'')
118 $this->buttons[$id][
'command'] =
'htmlarea-menu-'.$id;
119 $this->buttons[$id][
'tooltip'] = $tooltip;
120 $this->buttons[$id][
'textmode'] = $textmode;
121 $this->buttons[$id][
'position'] = $position;
122 $this->buttons[$id][
'context'] = $context;
123 $this->buttons[$id][
'menu_start'] = TRUE;
138 $this->buttons[
'menu_end_'.$id][
'menu_end'] = TRUE;
386 if (empty($classname)) $classname = get_class_lower($this);
387 return $classname.
'/'.$filename;