Настройки визуального редактора
<?php
echo CKEditor::widget([
'preset' => 'full',
'value' => isset($pagesCityContent[$city->id]['content']) ? $pagesCityContent[$city->id]['content'] : '',
'name' => 'pageContent[' . $pageId .'_'. $city->id . '][content]',
'options' => ['rows' => 3],
'clientOptions' => [
'forcePasteAsPlainText' => true,
'allowedContent' => true,
'removeFormatAttributes' => '',
],
])
?>