Forum closed. New forum available at http://community.wymeditor.org/

Data doesn't change after submission

Support forum for WYMeditor.

Data doesn't change after submission

Postby dor on Sun Oct 19, 2008 7:28 pm

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.
I'm not an English speaker, so sorry for my English mistakes (if there are any) or misunderstanding that caused by my lack of knowledge in English.
dor
 
Posts: 17
Joined: Sun Aug 17, 2008 7:39 pm

Re: Data doesn't change after submission

Postby michaele on Thu Oct 23, 2008 8:17 am

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();
});
michaele
 
Posts: 3
Joined: Mon Oct 13, 2008 9:00 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest