prepareVars(); return $this->makePartial('richeditor'); } /** * Prepares the list data */ public function prepareVars() { $this->vars['stretch'] = $this->formField->stretch; $this->vars['size'] = $this->formField->size; $this->vars['name'] = $this->formField->getName(); $this->vars['value'] = $this->model->{$this->columnName}; } /** * {@inheritDoc} */ public function loadAssets() { $this->addCss('vendor/redactor/redactor.css'); $this->addCss('css/richeditor.css'); $this->addJs('vendor/redactor/redactor.js'); $this->addJs('js/richeditor.js'); } }