Answer the question
In order to leave comments, you need to log in
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'
]) ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question