Gosu.pl

STeditor - simple wysiwyg editor - javascript

Download

Version: 1.0.0: STEditor.zip [7 KB] (2009-01-16)
License: BSD revised (free for any use)
Author: Cezary Tomczak ()
Subscribe to new releases on freshmeat.net

Demo

How to use

Include JS and CSS file:

<style type="text/css">@import url('SimpleTextEditor.css');</style>
<script src="SimpleTextEditor.js"></script>

Assign an id to a textarea, that will be later used when initializing editor.
Form button should call ste.submit().

<form>
    <textarea id="body" name="body"></textarea>
    <input type="submit" value="submit" onclick="ste.submit();">
</form>

Initialize the editor:

<script>
    var ste = new SimpleTextEditor("body", "ste");
    ste.cssFile = 'test.css';
    ste.charset = 'iso-8859-1';
    ste.init();
</script>