Page 1 of 1

Java Script text editor help needed

Posted: Wed Feb 24, 2010 1:36 pm
by jo1234la
Hello,

I am working on a site that utilizes a Javascript based Rich Text Editor. My goal is to create the text then export the html content to MySQL via PHP. I know it can be done but honestly I am a bit lost. I have gotten as far as to insert the record on click but none of the text goes with it. so I am familiar with the basic connection process and such.

What I want to know is what function / process am I missing to get the onsubmit /onclick event to send the text to the MySQL database. I am stumped if any of you geniuses have any ideas please help a newbie out. Thanks in advance!

Re: Java Script text editor help needed

Posted: Wed Feb 24, 2010 2:00 pm
by AbraCadaver
Why use onclick() or onsubmit(), just use the traditional submit. Then the textarea name will be available in the PHP $_POST array. What is the name of the textarea and where is your PHP code?

Re: Java Script text editor help needed

Posted: Wed Feb 24, 2010 4:15 pm
by jo1234la
Well the key is I need Rich text capability and Text Area does not offer that ability to insert Rich Text from the client page. With Javascript text editors I can edit and upload Rich Text versus just text.

if you know of a way to make rich text load into a text area do let me know. I would be much appreciative..

Re: Java Script text editor help needed

Posted: Wed Feb 24, 2010 4:51 pm
by AbraCadaver
That's how I thought you were doing it. How were you doing it?

viewtopic.php?f=1&t=113280#p595153