Skip to content
New issue

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

поле не заполнено #1

Closed
aripjanovsh opened this issue Jun 4, 2014 · 2 comments
Closed

поле не заполнено #1

aripjanovsh opened this issue Jun 4, 2014 · 2 comments
Labels

Comments

@aripjanovsh
Copy link

Здравствуйте,

Вывел виджет таким оброзом:

<?= $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'] ?>
@MihailDev
Copy link
Owner

я увидел конфликт с валидатором стандартным
попробуйте так

<?= $form->field($model, 'body', ['enableClientValidation' => false])->widget(\common\extensions\ckeditor\CKEditor::className(),[
                'editorOptions' => [
                    'preset' => 'standart', //разработанны стандартные настройки basic, standart, full данную возможность не обязательно использовать
                    'inline' => false, //по умолчанию false
                ],
 ]) ?>

временное решение

@MihailDev MihailDev added the bug label Jun 4, 2014
MihailDev added a commit that referenced this issue Jun 4, 2014
fix  standart -> standard ошибка была только в документации
@MihailDev
Copy link
Owner

добавил обновление значение при уходе курсора
проблема осталась если всё сделать без мышки но я ещё подумаю

поменяй 'preset' => 'standart' на 'preset' => 'standard'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants