Answer the question
In order to leave comments, you need to log in
How to set up ckeditor for yii2 so that it doesn't cut off the code?
There are two widgets
mihaildev\ckeditor
and
mihaildev\elfinder
The output of the widget looks like this:
<?= $form->field($model, 'body')->widget(CKEditor::className(), [
'editorOptions' =>
ElFinder::ckeditorOptions('elfinder',['preset' => 'backend']),
]) ?>
Answer the question
In order to leave comments, you need to log in
<?= $form->field($model, 'body')->widget(
CKEditor::className(),
[
'options' => ['rows' => 6],
'clientOptions' => [
'fullPage' => true,
'extraPlugins' => 'docprops',
'allowedContent' => true,
]
]
) ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question