wysihtml5 cannot validate the a textarea using jquery.validator?

kielarjohson

New Member
I used the wysihtml5-bootstrap to build a simple rich text editor and jquery.validator to verify the content is not tooshort using the minlength rule. But it seems that the validator doesn't work for this case ( It does work for other inputs and textarea that does not use wysihtml5). In my opinion, the validation is done when the element get focused out, but this event is not caught by the validator. Maybe it's because the wysihtml5 uses iframes and have hidden the actual textarea? I also tried to get the focusout function of the iframe generated by wysihtml5, but failed. May other one tell me how to validate the content in such situation?Thanks
 
Back
Top