tinymce and xajax: data in the editor is not submitted

by prettyscripts on 2008-06-23 15:44:11

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.
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 />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)