Closed rizrob66 closed 5 years ago
Just declare preset as "custom", then add/remove the necessary cofiguration in the clientOptions array. See the example code below.
<?= $form->field($model, 'message')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
'preset' => 'custom',
'clientOptions' => [
'height' => 400,
'toolbarGroups' => [
['name' => 'undo'],
['name' => 'basicstyles', 'groups' => ['basicstyles', 'cleanup']],
['name' => 'colors'],
['name' => 'links', 'groups' => ['links', 'insert']],
['name' => 'others', 'groups' => ['others', 'about']],
],
'removeButtons' => 'Subscript,Superscript,Flash,Table,HorizontalRule,Smiley,SpecialChar,PageBreak,Iframe',
'removePlugins' => 'elementspath',
'resize_enabled' => false
]
]) ?>
please help me, I need a custom preset or remove some buttons from basic? riz