/** * Constructs rich text area (ckeditor) * * @param string $name * @param null $attributes */ public function __construct($name, $attributes = null) { $templatePath = implode(DIRECTORY_SEPARATOR, [dirname(__FILE__), 'RichTextArea', 'views', '']); $this->setDecorator(new Decorator($templatePath)); $this->getDecorator()->setTemplateName('jquery'); parent::__construct($name, $attributes); }