Skip to content

Commit

Permalink
fix: getValue
Browse files Browse the repository at this point in the history
  • Loading branch information
krissss authored Mar 30, 2018
1 parent f293327 commit 88d27f5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions WangEditorWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function run()
if ($this->hasModel()) {
echo Html::activeHiddenInput($this->model, $this->attribute, $this->options);
$attribute = $this->attribute;
$content = $this->model->$attribute;
$content = Html::getAttributeValue($this->model, $attribute);
} else {
echo Html::hiddenInput($this->name, $this->value, $this->options);
$content = $this->value;
Expand Down Expand Up @@ -84,4 +84,9 @@ public function registerJs()
}
$view->registerJs($js);
}
}

protected function registerFullScreenAsset()
{

}
}

0 comments on commit 88d27f5

Please sign in to comment.