protected function resolveRedactorOptions()
 {
     $parentOptions = parent::resolveRedactorOptions();
     $options = array('paragraphy' => 'false', 'buttons' => $this->resolveRedactorButtons(), 'plugins' => CJSON::encode($this->resolvePlugins()));
     $options = CMap::mergeArray($parentOptions, $options);
     return $options;
 }
 protected function renderControlEditable()
 {
     $content = parent::renderControlEditable();
     $selector = '$(".redactor_editor").html()';
     $previewElementParams = array('isHtmlContent' => 1, 'inputId' => $this->getEditableInputId(), 'selector' => $selector);
     $previewElementParams = CMap::mergeArray($this->params, $previewElementParams);
     $controllerId = Yii::app()->controller->id;
     $moduleId = Yii::app()->controller->module->id;
     $previewElement = new AutoresponderOrCampaignFooterTextPreviewElement($controllerId, $moduleId, $this->model->Id, $previewElementParams);
     $content .= $previewElement->render();
     return $content;
 }