fillFromConfig([ 'fullPage', ]); } /** * {@inheritDoc} */ public function render() { $this->prepareVars(); return $this->makePartial('richeditor'); } /** * Prepares the list data */ public function prepareVars() { $this->vars['fullPage'] = $this->fullPage; $this->vars['stretch'] = $this->formField->stretch; $this->vars['size'] = $this->formField->size; $this->vars['name'] = $this->formField->getName(); $this->vars['value'] = $this->getLoadValue(); } public function onGetPageLinks() { $links = [ ['name' => 'Select a page...', 'url' => false], ['name' => 'Some url', 'url' => 'some/url'], ['name' => 'Other thing', 'url' => 'else/thing'], ['name' => 'More', 'url' => 'more/thing'] ]; return ['links' => $links]; } /** * {@inheritDoc} */ public function loadAssets() { $this->addCss('css/richeditor.css', 'core'); $this->addJs('js/build-min.js', 'core'); } }