samclarke / SCEditor

A lightweight HTML and BBCode WYSIWYG editor
http://www.sceditor.com/
Other
660 stars 188 forks source link

required attribute html5 support #1

Closed iamdey closed 12 years ago

iamdey commented 12 years ago

Nice library.

But the attribute "required" on textarea is not supported as well, this example show what happens on FF or Chrome :

<html>
<head>
  <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
  <script src="minified/jquery.sceditor.min.js"></script>
  <link rel="stylesheet" href="minified/jquery.sceditor.min.css" type="text/css" media="all" />
  <script>
            $(document).ready(function() {
                $("textarea").sceditorBBCodePlugin({
                    style: "minified/jquery.sceditor.default.min.css"
                });

        $("textarea").show();
            });
  </script>
</head>
<body>
  <form action="post.html">
    <textarea required="required" name="content" style="height: 300px; width: 400px;"></textarea>
    <button type="submit">Send</button>
  </form>
<body>
</html>
samclarke commented 12 years ago

Sorry for being so slow, I've not had internet access. It should now be fixed