2007-09-11

A Rich Text Editor plugin for jQuery

You are searching a unbloated Rich Text Editor for jQuery? I have something that will certainly fit your needs.

I have made this Rich Text Editor plugin as simple as possible to be easily changed. The file jquery.rte.js is only 7ko uncompressed, is compatible with major browsers (IE6, Firefox 2, Opera 9, Safari 3.03) and degrade gracefully in a textarea for others.

<form>
<p>
    <textarea name="description" id="id_description" 
    class="rte-zone">jQuery RTE</textarea>
</p>
<p>
    <textarea name="description2" id="id_description2" 
    class="rte-zone">jQuery RTE 2</textarea>
</p>
<input type="submit" />
</form>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.rte.js"></script>
<script type="text/javascript">
    $('.rte-zone').rte("css url", "toolbox images url");
</script>
</form>