Page 1 of 1

Data doesn't change after submission

PostPosted: Sun Oct 19, 2008 7:28 pm
by dor
On the client side there's no problem - the editor works fine.

But on the server side, the data doesn't change.... dunno why.
If the data was "Hello", and I'm writing in the editor "Hello World!", on the server-side I'll get "Hello".

I'm trying to fetch it with:
Code: Select all
// PHP code
$_POST['textarea_name']


This problem started suddenly ...

Other inputs are changeable.

Please help... I don't know what to do...

Thanks in advance.

Re: Data doesn't change after submission

PostPosted: Thu Oct 23, 2008 8:17 am
by michaele
It sounds like your form is submitting before the wymeditor gets updated.

Make sure your submit button has the class of "wymeditor" ( <input type="submit" class="wymeditor"... etc)

You can also add a jquery rule, like this, assuming you have a button input with the ID of "my-button"

$('#my-button').click(function(){
// the update command gets the 1st wymeditor on the page using (0)
$.wymeditors(0).update();
$('#my-form').submit();
});