Posted by : Chris London in (Web Tricks)
Easiest WYSIWYG Editor for Your Site
Tagged Under : editor, textarea, web trick, wysiwyg
What’s a WYSIWYG editor?
WYSIWYG stands for What You See Is What You Get. Basically it’s more then just a text box. It allows for things like font stylizing, image inserting, etc. If you’ve ever done any blogging online them you most likely used one for making your blog posts. Another simple way to look at it is it is a simple version of insert-your-favorite-word-processor-here (i.e., Open Office, Microsoft Word).
This is all you need to add to your site:
<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script type="text/javascript">bkLib.onDomLoaded(
nicEditors.allTextAreas);</script>
This will automatically convert any <textarea> into a WYSIWYG. This is provided by http://nicedit.com/
If you want to do any customizing you will need to read their documentation: http://nicedit.pbworks.com/
Example:
<textarea rows="8" cols="55"></textarea>
