jvverde / ht5ifv

HTML5 inline form validator
http://serprest.pt/jquery/ht5ifv/docs/docs.html
58 stars 6 forks source link

tinyMCE support #2

Open pcout opened 12 years ago

pcout commented 12 years ago

hi,

I have a form with some fields of various types and two tinyMCE textareas instances. is tinyMCE validation supported ? If so, how will the code look like ?

thank you

jvverde commented 12 years ago

Hi,

I didn't know tinyMCE and after some searching I am not sure whta you mean by tinyMCE validation.

If you mean using some internal tinyMCE procedures I really don't know. I have not yet time to see the documentation. In other hand if all you want is just to validate the other fields you may filter out the tinyMCE textareas, eg: $('form').ht5ifv({ filter:function($nodes){return $nodes.not('textarea.yourclass4tinyMCE');} })

Or you may apply htifv directly to form fields, eg: $('input,textarea,select').not('textarea.yourclass4tinyMCE').ht5ifv();

Best wishes

Isidro