zubzizub
6/29/2017 - 9:33 AM

Настройки визуального редактора

Настройки визуального редактора

<?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' => '',
    ],
])
?>