This error happen because tinyMCE input box is not textarea but a div and it will not post when you submit a form where textarea placed. What you need to do are add theses following code on submit event,
tinyMCE.triggerSave();So the complete code be like this,
$("#btnSave").click(function() {
tinyMCE.triggerSave();
$("#frmPost").submit();
return false;
})
That command is used to load tinyMCE input to a hidden textarea and of course this will be posted when you submit a form that contain tinyMCE.
0 comments
Post a Comment