O
O
Orkhan2015-10-01 12:45:39
Yii
Orkhan, 2015-10-01 12:45:39

CKEditor not working. Why?

Friends!
I want to install CKEditor. Here Github
I do everything according to the instructions.
Namely:
1. Add to the console: composer require 2amigos/yii2-ckeditor-widget:~1.0
The extension folder is added to the "vendor" folder, i.e., I think there should be no problems here.
2. Add to view: use dosamigos\ckeditor\CKEditor;
Further to the place where the editor is needed:

<?= $form->field($model, 'text')->widget(CKEditor::className(), [
        'options' => ['rows' => 6],
        'preset' => 'basic'
    ]) ?>

BUT! Doesn't work... In the browser, the normal textinput field is displayed, not the editor.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2015-10-01
Alyshov

Styles were not connected, due to the fact that I wrote the following in the controller:

public function init() {
      $this->layout = false;
    }

It's decided.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question