예제 #1
0
 /**
  * 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();
 }
예제 #2
0
 /**
  * Registers Imperavi Redactor asset bundle
  */
 protected function registerRedactorAsset()
 {
     $this->_assetBundle = ImperaviRedactorAsset::register($this->getView());
 }