We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Здравствуйте,
Вывел виджет таким оброзом:
<?= $form->field($model, 'body')->widget(\common\extensions\ckeditor\CKEditor::className(),[ 'editorOptions' => [ 'preset' => 'standart', //разработанны стандартные настройки basic, standart, full данную возможность не обязательно использовать 'inline' => false, //по умолчанию false ], ]) ?>
Поля body обязательная
[['title', 'body'], 'required'],
При первой нажатии кнопки сохранить пишет что поле не заполнено, после второй нажатии сохраняет.
поле не заполнено
Кнопка сохранить стандартная
<?= Html::submitButton($model->isNewRecord ? Yii::t('pages', 'Создать') : Yii::t('pages', 'Изменить'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary'] ?>
The text was updated successfully, but these errors were encountered:
я увидел конфликт с валидатором стандартным попробуйте так
<?= $form->field($model, 'body', ['enableClientValidation' => false])->widget(\common\extensions\ckeditor\CKEditor::className(),[ 'editorOptions' => [ 'preset' => 'standart', //разработанны стандартные настройки basic, standart, full данную возможность не обязательно использовать 'inline' => false, //по умолчанию false ], ]) ?>
временное решение
Sorry, something went wrong.
fix поле не заполнено #1
a94e3cf
fix standart -> standard ошибка была только в документации
добавил обновление значение при уходе курсора проблема осталась если всё сделать без мышки но я ещё подумаю
поменяй 'preset' => 'standart' на 'preset' => 'standard'
No branches or pull requests
Здравствуйте,
Вывел виджет таким оброзом:
Поля body обязательная
При первой нажатии кнопки сохранить пишет что
поле не заполнено
, после второй нажатии сохраняет.Кнопка сохранить стандартная
The text was updated successfully, but these errors were encountered: