public function wysiwyg($options = []) { $this->parts['{input}'] = CKEditor::widget(['model' => $this->model, 'attribute' => $this->attribute, 'options' => $options]); return $this; }
public function run() { return CKEditor::widget(['model' => $this->model, 'attribute' => $this->attribute, 'options' => ['rows' => 10], 'clientOptions' => ['allowedContent' => true]]); }