Rich Text Editor

Rating: 4.2/5 (26 votes)

This is a rich text editing control that I created after being frustrated with the existing selection out there. I couldn't find an editor that:

  1. Could be easily created and destroyed dynamically
  2. Didn't suffer from feature-bloat
  3. Looked good

So this control was born. The core code is originally based on the editor by Kevin Roth, but the interface and object design is completely new. Parts of the interface still need improving (the link and table dialogs, for example), but overall it suits my purposes nicely.

Demo

Download

Rich Text Editor is available under the terms of the GNU General Public License.

Source:

Two other controls are required by the toolbar dialogs:

Global dependencies for all controls:

Usage

Constructor:

var rte = new Control.RTE(element, image_dir, options);

Parameters:

Additional Options:

Example:

new Control.RTE('my_textarea', '/images/rte');

Example using server-side image browser:

new Control.RTE('my_textarea', '/images/rte', {fileLister: fileListHandler});