_persistantFreeze = true; $this->_type = 'html_editor'; global $app, $fck_attribute; /** @var ChamiloLMS\Component\Editor\Editor $editor */ $editor = $app['html_editor']; $this->editor = $editor; $this->editor->setName($name); $this->editor->processConfig($fck_attribute); $this->editor->processConfig($config); } /** * Return the HTML editor in HTML * @return string */ public function toHtml() { $value = $this->getValue(); if ($this->editor->getConfigAttribute('fullPage')) { if (strlen(trim($value)) == 0) { // TODO: To be considered whether here to be added DOCTYPE, language and character set declarations. $value = '