Luc Pestille wrote:
That was exactly what I was looking for, thanks Buchs. In my case it was the 
below, just before I call validate();

$('#admin-jobs .submit').click(function(){
        if (tinyMCE){ tinyMCE.triggerSave(); }
});

I don't know if this could be integrated in to validate() itself, so that other 
people don't have to come asking/searching for the answer?
I guess that could work. A less-guesswork would be a custom method, something like this:
$.validator.addMethod("tinymce", function() {
 if(tinyMCE) tinyMCE.triggerSave();
 return true;
});

Then used in combination with other rules:
rules: {
  someField: {
    tinymce: true,
    required: true
 }
}

--
Jörn Zaefferer

http://bassistance.de

Reply via email to