Permalink
Browse files

Update ImperaviRedactorWidget.php

  • Loading branch information...
1 parent f0ec3ad commit 505e819c20c62af3919f3071f8b59fbdfa7a9c99 @bookin bookin committed Feb 2, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 ImperaviRedactorWidget.php
@@ -54,13 +54,12 @@ public function init()
if ($this->selector === null) {
list($this->name, $this->id) = $this->resolveNameID();
+ $this->htmlOptions['id'] = $this->id;
$this->selector = '#' . $this->id;
if ($this->hasModel()) {
- $this->selector = '#' .CHtml::getIdByName(CHtml::resolveName($this->model, $this->attribute));
echo CHtml::activeTextArea($this->model, $this->attribute, $this->htmlOptions);
} else {
- $this->htmlOptions['id'] = $this->id;
echo CHtml::textArea($this->name, $this->value, $this->htmlOptions);
}
}

0 comments on commit 505e819

Please sign in to comment.