/** * @return string */ public function buildEditor() { $result = ''; if ($this->editor) { $this->editor->value = $this->getValue(); $this->editor->setName($this->getName()); $result = $this->editor->createHtml(); } return $result; }
/** * @param bool $style * * @return string */ public function buildEditor($style = false) { $result = ''; if ($this->editor) { $this->editor->value = $this->getValue(); $this->editor->setName($this->getName()); if ($style == true) { $result = $this->editor->createHtmlStyle(); } else { $result = $this->editor->createHtml(); } } return $result; }