tinymce and xajax: data in the editor is not submitted

by prettyscripts on 2008-06-23 15:44:11 • Leave a comment »

javascriptxajaxtinymce

i just downloaded and installed tinymce which magically converted the <textarea> element into a nice little editor, which suppose transform the input into html output. nice! no more educating non-programmers about html tags.

if you submit the form via normal post action, the value for <textarea> form element is submitted. but when submitting the form via xajax, the data for the <textarea> element is empty!

solution

before submitting the form, call tinyMCE.triggerSave().

more about tinymce and xajax here.

Tags: form, post, submit, textarea, tinymce, xajax

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. only comments relevant to the post will be published.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)