Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wysiwyg editor

Status
Not open for further replies.

jefargrafx

Instructor
May 24, 2001
273
US
I'm new to php and mysql but I got ta say it's great.

I'm developing a CMS for us at work and I'm using a free Rich Text Editor, it ues javascript and php to pass html into a database field in mysql.

my question, is I want to let the user select to either

post the content to a save as draft table, a editor review table or a publish it table.

No idea on how to do this from one form.

anyone got an idea????

pass everything to to another form or what?

jef
 
Keep everything in one table. Create an extra field in your table to determine what state the article is in (review/draft or approved/publish etc).

When the article is submitted, it automatically gets considered as a draft. When it gets reviewed by an editor, it can be flagged to publish.

You can also create a 'draft' and 'publish' button on the compose article page - - instead of a single 'submit' button.

- - picklefish - -
 
If you view source are the RTF tags visible? They'll look like this:

Code:
\widowctrl\ftnbj\ftnrestart \sectd \linex0\endnhere \pard\plain 
\fs20 This is Normal style.
\par \pard\plain \s1\qr\fs20
This is right justified. I call this style FLUSHRIGHT.
\par \pard\plain \s2\fi-720\li720\fs20\ri2880
This is an indented paragraph. I call this style IND. It produces 
a hanging indent.
\par}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top