TinyPortal

Development => Block Codes => Topic started by: Crip on June 06, 2007, 09:29:02 PM

Title: RTE Editor
Post by: Crip on June 06, 2007, 09:29:02 PM
I saw this thought it might be a useful snippet..

NS6+ IE5+ Rich Text Editor (for textareas)
Description: Replace a form's textarea field(s) with a custom one that supports WYSIWYG formatting with this Rich Text Editor script. It allows the user to easily format the entered content, such as make it bold, change its size, colors etc. The resulting source code is then submitted as regular text for further processing by your form script.

This script works in IE5+/Mozilla 1.3+/Mozilla Firebird/Firefox 0.6.1+/Netscape 7.1+. In Mozilla, it relies on the Mozilla Rich Text Editing API. Browsers that aren't supported should see just a regular form textarea.