Skip to content

Commit

Permalink
add elfinder config to ckeditor
Browse files Browse the repository at this point in the history
  • Loading branch information
ZAYEC77 committed Oct 5, 2016
1 parent 5edb53e commit f8203e8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/views/admin/_form.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use mihaildev\ckeditor\CKEditor;
use mihaildev\elfinder\ElFinder;
use nullref\blog\models\Post;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
Expand All @@ -19,12 +20,14 @@
<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

<?= $form->field($model, 'short_text')->widget(CKEditor::className(), [
'editorOptions' => [
'editorOptions' => ElFinder::ckeditorOptions('elfinder-backend', [
'preset' => 'basic',
]
])
]) ?>

<?= $form->field($model, 'text')->widget(CKEditor::className()) ?>
<?= $form->field($model, 'text')->widget(CKEditor::className(), [
'editorOptions' => ElFinder::ckeditorOptions('elfinder-backend'),
]) ?>

<?= $form->field($model, 'slug')->textInput(['maxlength' => true]) ?>

Expand Down

0 comments on commit f8203e8

Please sign in to comment.