Page 1 of 1

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

Posted: Wed Apr 08, 2009 3:04 am
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

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

Posted: Wed Apr 08, 2009 4:22 am
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.

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

Posted: Wed Apr 08, 2009 5:11 am
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

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

Posted: Wed Apr 08, 2009 5:14 am
by Paul Arnold
Have a look at HTML Purifier too mate.

http://www.htmlpurifier.org

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

Posted: Wed Apr 08, 2009 5:24 am
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