Skip to content

Commit

Permalink
Update ImperaviRedactorWidget.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bookin committed Feb 2, 2013
1 parent f0ec3ad commit 505e819
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ImperaviRedactorWidget.php
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 505e819

Please sign in to comment.