en pt_br

Scripts

Freeware JavaScript code released under GPL.

In the begining...

The codes I provide here are part of the Forms system from my Web Development Platform Tanara, which is the one I used to built all of my sites with.

Tanara was inspired by Drupal, with whom I've developed some sites before, and learned to like it's forms API.
However, at the time, Drupal was a little heavy for my needs, and I wanted more interaction with JavaScript codes to be built-into the system. I also wanted to create the smallest and fastest HTML and JS code possible so that sites could load as fast as possible.

The result was Tanara. I haven't released its code yet, mainly because I'm still beta testing it and writing it's documentation, but I am releasing some code snippets from it here.

Damn Small Rich Text Editor v0.2.3

This piece of code creates a Rich Text Editor ("RTE") from an IFRAME element. Yes, I know, there are tens of such scripts, and most of them are probably more sophisticated than mine, but my script's purpose is to provide enough basic functionality while having the smallest footprint possible.

The code relays on the fantastic jQuery library, which is incorporated today into most Platforms anyway, so no code overhead there...

Apart from jQuery, you'll need to include one JS file and one CSS file and you're done.
I recommend using the minified/packed versions in conjuction with GZIP compression, to get the best results!

Getting DSRTE

First, grab the tarball here. It contains both JS and CSS files, an example PHP file and a subdirectory with all needed images.

Now, unpack it into your web dir, and point your browser to it. Voila! you're done!

If you'd like to see a live demo before you go, you can check it here.

Testing

I've tested this code on FF2/3 and IE7, which are the only browsers I have available.
I believe it should work on IE6 as well. I'd love to know how it's working on other browsers, though, so feel free to mail me any comments or bug reports.