update editor at document template form

This commit is contained in:
iIronside
2022-11-25 12:30:43 +03:00
parent ac49e3ccf1
commit 1f349aec84
3 changed files with 16 additions and 7 deletions

View File

@ -3,6 +3,7 @@
use asmoday74\ckeditor5\EditorClassic;
use backend\modules\document\models\DocumentField;
use common\helpers\StatusHelper;
use mihaildev\ckeditor\CKEditor;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
@ -26,10 +27,17 @@ use yii\widgets\ActiveForm;
]
) ?>
<?= $form->field($model, 'template_body')->widget(EditorClassic::className(), [
'clientOptions' => [
'language' => 'ru',
]
<!-- --><?//= $form->field($model, 'template_body')->widget(EditorClassic::className(), [
// 'clientOptions' => [
// 'language' => 'ru',
// ]
// ]); ?>
<?= $form->field($model, 'template_body')->widget(CKEditor::className(),[
'editorOptions' => [
'preset' => 'full', //разработанны стандартные настройки basic, standard, full данную возможность не обязательно использовать
'inline' => false, //по умолчанию false
],
]); ?>
<div class="form-group">