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

Ошибка валидатора yii2 #3

Closed
shah-typhoon opened this issue Oct 15, 2016 · 1 comment
Closed

Ошибка валидатора yii2 #3

shah-typhoon opened this issue Oct 15, 2016 · 1 comment

Comments

@shah-typhoon
Copy link
Contributor

При отправке формы происходит ошибка валидации, поскольку tinymce не записывает содержимое окна редактора в соответствующий textarea и в момент валидации поле пустое.
Предлагаю добавить свойство public $triggerSaveOnBeforeValidateForm = true; (или любой другой, название не суть) и добавить в виджет обработчик события формы beforeValidate как у 2amigos https://github.com/2amigos/yii2-tinymce-widget/blob/master/src/TinyMce.php
Иначе приходится отказываться от Вашего TinyMCE и строить костыли через classMap. Нравится Ваш filemanager :)

@PendalF89
Copy link
Owner

Здравствуйте! Спасибо за найденный баг, сделайте пожалуйста pull request.

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

No branches or pull requests

2 participants