skeeks\cms\widgets\formInputs\comboText\ComboTextInputWidget::registerPlugin PHP Méthode

registerPlugin() protected méthode

Registers CKEditor plugin
protected registerPlugin ( )
    protected function registerPlugin()
    {
        $view = $this->getView();
        $this->ckeditor = new \skeeks\cms\widgets\formInputs\ckeditor\Ckeditor(ArrayHelper::merge(['model' => $this->model, 'attribute' => $this->attribute, 'relatedModel' => $this->model], $this->ckeditorOptions));
        $this->codemirror = new CodemirrorWidget(ArrayHelper::merge(['model' => $this->model, 'attribute' => $this->attribute, 'preset' => 'htmlmixed', 'assets' => [\skeeks\widget\codemirror\CodemirrorAsset::THEME_NIGHT], 'clientOptions' => ['theme' => 'night']], $this->codemirrorOptions));
        $this->ckeditor->registerAssets();
        $this->codemirror->registerAssets();
        $this->clientOptions['ckeditor'] = $this->ckeditor->clientOptions;
        $this->clientOptions['codemirror'] = $this->codemirror->clientOptions;
        ComboTextInputWidgetAsset::register($this->view);
    }