Beispiel #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);
     }
 }
Beispiel #2
0
 /**
  * Class constructor
  * @param string  HTML editor name/id
  * @param string  HTML editor  label
  * @param array  Attributes for the textarea
  * @param array $config	Optional configuration settings for the online editor.
  * @return bool
  */
 public function HTML_QuickForm_html_editor($name = null, $label = null, $attributes = null, $config = null)
 {
     if (empty($name)) {
         return false;
     }
     HTML_QuickForm_element::HTML_QuickForm_element($name, $label, $attributes);
     $this->_persistantFreeze = true;
     $this->_type = 'html_editor';
     global $fck_attribute;
     $editor = Container::getHtmlEditor();
     if ($editor) {
         $this->editor = $editor;
         $this->editor->setName($name);
         $this->editor->processConfig($fck_attribute);
         $this->editor->processConfig($config);
     }
 }