My form uses TinyMCE to format HTML, but somehow the content is always blank on first submission. This is what I have for the submit function:

$('#commentForm').click('submit', function () {
        tinyMCE.triggerSave(true, true);
        $(this).ajaxSubmit({
            success: function (result) {
                if (result.success) {
                    $('#commentForm')[0].reset();
                    var newComment = { comment: result.comment };
                    // Append the new comment to the div
                    $('#commentTemplate').tmpl(result.comment).appendTo('#commentsTemplate');
                }
                $('#commentFormStatus').text(result.message);
            }
        });
        return false;
    });

I've added tinyMCE.triggerSave(true,true); but it doesn't seems to work. Any suggestion?

Thanks.

Edit
Report