/** * Renders the widget. */ public function run() { $this->selector = '#' . $this->htmlOptions['id']; if (!is_null($this->model)) { echo Html::activeTextarea($this->model, $this->attribute, $this->htmlOptions); } else { echo Html::textarea($this->attribute, $this->value, $this->htmlOptions); } ImperaviRedactorAsset::register($this->getView()); $this->registerClientScript(); }
/** * Registers Imperavi Redactor asset bundle */ protected function registerRedactorAsset() { $this->_assetBundle = ImperaviRedactorAsset::register($this->getView()); }