1

I want users to write HTML code, so they could format text and I could put that into database. I want users to be able to make lists, bold text, italic and I guess that's it. Thanks.

2 Answers 2

2

You should use ckeditor.

CKEditor is a text editor to be used inside web pages. It's a WYSIWYG editor, which means that the text being edited on it looks as similar as possible to the results users have when publishing it. It brings to the web common editing features found on desktop editing applications like Microsoft Word and OpenOffice.

for replacing all text area with html editor refer below link.

http://svn.ckeditor.com/CKEditor/trunk/_samples/php/replaceall.php

Sign up to request clarification or add additional context in comments.

Comments

0

I just recently implemented Chipersoft's version of WYSIWYG Markdown Editor, works much like Stackoverflow's markdown editor.

You can save the markdown version in your database, then when you want to render it, you can use PHP Markdown to convert it from marked down to actual HTML tags.

These two apps work great together, and means less of a footprint in your database (and on filesystem), because you are not having to store the full blown html tags.

Markdown Editor: https://github.com/ChiperSoft/wmd

Markdown to HTML Converter: http://michelf.com/projects/php-markdown/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.