-
Notifications
You must be signed in to change notification settings - Fork 10
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
Validation fields #2
Comments
Hello, Unfortunately I afraid that blocking the popup closing is not possible |
I found a solution adding onsubmit: function(e) {
e.preventDefault();
// validation
// if the text field is not empty
editor.windowManager.close();
} |
e.preventDefault(); is working for you? I thought about the same solution, but when I've checked out it doesn't worked properly so I thought that it is not working this way - thank you for this information :) |
3 years later, this helped me, since I found no way to do it on a native way. |
Hi,
is it possible to add a simple validation to fields value in the TinyMCE popup before submit?
My scenario: I add a button that opens a popup with a text input field. If it is empty when I submit, an alert appears and the popup doesn't close. If the value is correct then the popup closes.
Thanks in advance
The text was updated successfully, but these errors were encountered: