ajax Post data missing with tinyMCE on Firefox
- by Freeman
I have a problem with my form when I try to submit with ajax. I am using Malsup Form plugin for Jquery but also using tinyMCE editor. When I submit the form and check the $_POST array, there is no data from the textarea. I have tried to use the triggerSave() function but to no avail. Everything is working well in IE.
// These options are common and will be used for many form submissions
var options = {
target: '#notice', // target element(s) to be updated with server response
dataType:'html',
resetForm:true,
beforeSubmit: function(){tinyMCE.triggerSave(false,true);
},
success:function(msg){
$('#notice').html( msg)
refresh(3)
}
};
//prepare form
$('#savetext').ajaxForm(options);