Unable to submit the form because of html5 required attribute
See original GitHub issueI believe tinymce should handle this case.
Solutions like this:
// fix tinymce bug
if($this.is('[required]')){
options.oninit = function(editor){
$this.closest('form').bind('submit, invalid', function(){
editor.save();
});
}
}
should be integrated into tinymce.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:14
- Comments:24 (1 by maintainers)
Top Results From Across the Web
6 Reasons - HTML5 Required Attribute Validation not Working
1. The Form Tag has “novalidate” Attribute · 2. Required Attribute Validation doesn't Work with Unclosed Input Tags · 3. The Button is...
Read more >How do I make a field required in HTML? - Stack Overflow
In the case of "button" field handled by JS to submit form lacks the necessity of Submit button hence Required doesn't Work.
Read more >HTML Required Not Working: 5 Issues That Cause It
Reasons Why HTML Required Not Working. As per the general rule, any HTML form control with the required attribute must have a value...
Read more >HTML5 Forms: Required Type Attribute - Wufoo
The Boolean required attribute marks any form control as being required to have a value before the form can be submitted. In browsers...
Read more >[upstream] HTML5 "required" attribute prevents forms ... - Drupal
The reason is because the wysiwyg hides the original textarea and only copies the value across to it in a javascript event handler...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Instead of adding more and more paid features, CAN YOU ALREADY FIX THIS?
Really??? TinyMCE doesnt support HTML5 required attribute? And we need to write such a function to do that? I’m impressed… Any chance this could be implemented?