Ticker

6/recent/ticker-posts

Have to submit ajax form twice to post tinymce data to server

I'm having a problem where the first time I submit the form containing tinymce, an empty value is submitted. The second time however, it posts correctly.
I am doing this in a Ruby on Rails app, submitting via ajax, using a remote_form_for, and submitting with a submit_tag.

the solution

just add tinyMCE.triggerSave(true,true); before the submit. it will work fine.
 

--
Regards,
Pavan

Post a Comment

0 Comments