diff --git a/WangEditorWidget.php b/WangEditorWidget.php index b1d86a1..f9d6595 100644 --- a/WangEditorWidget.php +++ b/WangEditorWidget.php @@ -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; @@ -84,4 +84,9 @@ public function registerJs() } $view->registerJs($js); } -} \ No newline at end of file + + protected function registerFullScreenAsset() + { + + } +}