21 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
30 var $allowed_editors = array();
44 function XoopsFormSelectEditor(&$form, $name =
'editor', $value = null, $nohtml =
false, $allowed_editors = array())
46 $this->XoopsFormElementTray(
_SELECT);
47 $this->allowed_editors = $allowed_editors;
50 $this->value = $value;
51 $this->nohtml = $nohtml;
63 $editor_handler->allowed_editors = $this->allowed_editors;
65 $extra =
'onchange="if(this.options[this.selectedIndex].value.length > 0 ){
66 window.document.forms.' . $this->
form->getName() .
'.submit();
68 $option_select->setExtra($extra);
69 $option_select->addOptionArray($editor_handler->getList($this->nohtml));
70 $this->addElement($option_select);
71 return parent::render();