update editor at document template form
This commit is contained in:
@ -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">
|
||||
|
Reference in New Issue
Block a user