['FormElements'], 'hasButtons' => false]);
$block->addElement(
'static',
'content',
[
'tag' => 'div',
'attribs' => ['class' => 'html_block_view'],
'escape' => false,
]
);
$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', ['tag' => 'dl'])
->addDecorator('Fieldset', ['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 . '"',
['beforeScripts' => true]
);
return parent::initRender();
}
}