array('FormElements'), 'hasButtons' => false));
$block->addElement('static', 'content', array('tag' => 'div', 'attribs' => array('class' => 'html_block_view')));
$block->content->removeDecorator('Label');
$this->addSubForm($block, 'data');
}
public function loadDefaultDecorators()
{
if ($this->loadDefaultDecoratorsIsDisabled()) {
return;
}
$decorators = $this->getDecorators();
if (empty($decorators)) {
$this->addDecorator('FormElements')
->addDecorator('HtmlTag', array('tag' => 'dl'))
->addDecorator('Fieldset', array('class' => 'cms_item'));
}
}
public function initRender()
{
/** @var $doc App_Doc_Site */
$doc = Zend_Registry::get('doc');
$ckeditorBasePath = addslashes(Qs_Constant::get('BASE_URL') . '/js/ckeditor/');
$doc->addInlineScript(
'CKEDITOR_BASEPATH',
'window.CKEDITOR_BASEPATH = "' . $ckeditorBasePath . '"',
array('beforeScripts' => true)
);
return parent::initRender();
}
}