示例#1
0
 /**
  * Class Constructor
  * @param string $name
  * @param string $elementLabel HTML editor  label
  * @param array  $attributes Attributes for the textarea
  * @param array  $config Optional configuration settings for the online editor.
  *
  */
 public function __construct($name = null, $elementLabel = null, $attributes = [], $config = [])
 {
     if (empty($name)) {
         return false;
     }
     parent::__construct($name, $elementLabel, $attributes);
     $this->_persistantFreeze = true;
     $this->_type = 'html_editor';
     $editor = Container::getHtmlEditor();
     if ($editor) {
         $this->editor = $editor;
         $this->editor->setName($name);
         $this->editor->processConfig($config);
     }
 }
示例#2
0
 /**
  * constructor
  *
  * @param string $elementName (optional) name of the text field
  * @param string $elementLabel (optional) text field label
  * @param string $attributes (optional) Either a typical HTML attribute string or an associative array
  */
 public function __construct($elementName = null, $elementLabel = null, $attributes = null)
 {
     parent::__construct($elementName, $elementLabel, $attributes);
 }