Answer the question
In order to leave comments, you need to log in
How to make friends ckeditor with html?
Good afternoon. Tell me how to properly configure ckeditor (I use from 2amigos ) so that it does not clean div blocks and so on. Googled about the property config.allowedContent = true; , but within the framework of yii2 I can’t catch up where to register it. Going to a vendor is not an option.
<?= $form->field($model, 'content')->widget(CKEditor::class, [
'options' => [
'id' => 'editor1',
'rows' => 6,
],
'preset' => 'advanced'
])->label(false) ?>
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