question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to submit the form because of html5 required attribute

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Reactions:14
  • Comments:24 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
kironetcommented, Sep 18, 2018

Instead of adding more and more paid features, CAN YOU ALREADY FIX THIS?

11reactions
Tomicapocommented, Aug 16, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found