RTE, Rich Text CMS editing - how the heck do you do it?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

RTE, Rich Text CMS editing - how the heck do you do it?

Post by simonmlewis »

Dear fellow developers

I have a content management system, but it does need a system, pretty much like what we have here.

So the font, styling, colours can be changed.

I have found various methods to do this: fckeditor, rte, kevin roth....
So are easy to setup than others (kevin roth was the easiest), however none demonstrate effectively how to pass data from one page to another, so the content of the 'field' can be INSERT into a mysql database.

The Kevin Roth method allowed data to pass, but it all went via the URL, and when that URL is very long, it's impossible to manage.

Surely there's a way to pass the data into a variable and pass that thru - like with a normal Form Textbox way.

Anyone got any brilliant methods that are foolproof?

Regards
Simon
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: RTE, Rich Text CMS editing - how the heck do you do it?

Post by it2051229 »

i'm using TinyMCE rich text editor and easy to setup too.. You just include the javascript needed and it will convert all textarea tags of the page into a rich text editor. Then you create a <textarea name='mytextarea'></textarea> tag... using the $_POST["mytextarea"] method, you can get the value of the text area just like a normal textbox.. that is if you know how to program in PHP then it's easy.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: RTE, Rich Text CMS editing - how the heck do you do it?

Post by simonmlewis »

Hello

Thank is an outstanding result. Next task is to see if I can pass it - with the boldness etc - to a database. And then even moreso, put the content from the db back into it for editing.

But this is a brilliant step forward. Thank you.

Simon
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Paul Arnold
Forum Contributor
Posts: 141
Joined: Fri Jun 13, 2008 10:09 am
Location: Newcastle Upon Tyne

Re: RTE, Rich Text CMS editing - how the heck do you do it?

Post by Paul Arnold »

Have a look at HTML Purifier too mate.

http://www.htmlpurifier.org
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: RTE, Rich Text CMS editing - how the heck do you do it?

Post by simonmlewis »

And I have passed the data to a db, and extracted it from - all exactly how I wanted it to be.

Awesome result. Could not have asked for better.

Cheers from a very happy developer.

Simon
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply