tiff / wysihtml5

Open source rich text editor based on HTML5 and the progressive-enhancement approach. Uses a sophisticated security concept and aims to generate fully valid HTML5 markup by preventing unmaintainable tag soups and inline styles.
http://xing.github.com/wysihtml5/
MIT License
6.49k stars 995 forks source link

I cannot use HTML5 Validator with my wsyihtml5 editor? #525

Closed efkan closed 9 years ago

efkan commented 9 years ago

Hello,

I've been using "bootstrap3-wysihtml5-bower" editor. In fact it uses wysihtml5 version 0.3.0 . Everything is perfect. But I can't use HTML5 form valitador .

My textarea like the below;

<form>
<textarea id="content" class="textarea" style="height:216px;width:100%" required></textarea>
</form>

The below code works in form properly. If I try submit the form without ant text it'll be stopped because of HTML5 required tag. This is good.

Then I initialize my wysihtml5 editor on my textarea like the following;

 $('.textarea').wysihtml5({ "font-styles": false, "image":false });

And if I submit the form after wrote the above codes I'll get this error An invalid form control with name='' is not focusable. Actually this is normal. Because my real control is hidden.

By the way, if I had written some text on the wysihtml5 editor, everything is perfect. I can post editor content properly.

What shouyld I do?

efkan commented 9 years ago

https://github.com/jhollingworth/bootstrap-wysihtml5/issues/275