views:

2033

answers:

12

I have a PHP web application inside where i need to have a rich text editor(with basic formating options) for my users to enter data in to the portal.

Can any one tell me how to do this ? Will there be any change in the database saving part since i am saving data in a mysql DB

Thanks in advance

A: 

You should give a go to FCKEditor.

You can also take a look at these.

Kirtan
A: 

I recommend you FCKEditor, it's easy to integrate with PHP...

CMS
A: 

There are a number of different options, the most prevalent being TinyMCE andFCKEditor. I recommend shopping around a little bit for one you like, but they should all submit valid html in forms, etc. The biggest difference may be in the way you validate input to protect against XSS attacks (you need to allow 'safe html' in form submissions; this looks promising).

Elliot Kroo
+2  A: 

FCKeditor is pretty good and is painlessly easy to use. Some simple javascript calls at page load and it'll magically replace textareas with RTEs. plus it runs well on browsers going all the way back to IE5.5. There should be no impact on your database assuming you are already prepared to cope with HTML coming in from your textareas...

Scott Evernden
A: 

i like tinymce

Galen
A: 

To use any of the RTF style editors you have to set the fields in which you are going to store text to be of data type LongText.

Both TinyMCE and FCKEditor are good and both will store text formatting information as HTML Tags.

In both cases inserting graphics and/or Flash will require you to first upload the content to using their interface and then insert it.

We have observer that TinyMCE seems to be faster to load compared to FCKEditor on our systems.

Yogi Yang 007
+2  A: 

Or maybe RTE(rich text editor) from yahoo user interface library?

http://developer.yahoo.com/yui/editor/

Which I think might have some benefits:

  • Hosting (fast, optimized) from yahoo
Alfred
+1  A: 

I have reviewed many of these systems and find, like many of the posters above, that FCKEditor and TinyMCE are the best. I go with FCK though because it has bult-in file/image upload support - you have to pay for module to achieve this on TinyMCE.

FCKEditor has a commercial licence or an open source personal and educational use licence, depending on your requirements.http://www.fckeditor.net/license
stukelly
A: 

I've never tried but MarkitUp! appears great. It was built on the jQuery library.

MaoTseTongue
A: 

We have been using the SPAW editor for a few years now, which you handle and code via PHP instead of JavaScript (so its a server-side coding perspective instead of client-side).

We have found it to be extremely extensible and customizable.

If you want to have a look, here is the link: http://www.spaweditor.com/

OneNerd
+1  A: 

Nicedit is an easy-to-use and lightweight (~25KB) WYSIWYG editor for Javascript.

You can customize the style and the buttons you want to appear in the toolbar.

You can also extend it, saving data with AJAX, generate valid XHTML, create multiple editors, upload images, BBCode, and more...

I use it with jQuery and I'm very satisfied with the results

And it's open source :) with a MIT License

xaguilars
A: 

CKEditor 3.3.1 released! 05.28 CKEditor 3link text.3 released! 05.28 CKEditor 3.2.2 released! 04.09 CKEditor 3.2.1 released!

prabu