WYSIWYG

View the Project on GitHub maccman/wysiwyg

Simple jQuery WYSIWYG.

Edit me...

Usage

  1. Include jQuery
  2. Instantiate the Wysiwyg object, and append it to the page
  3. Enable the contenteditable attribute on an element

For Example:

<script src="jquery.js"></script>
<script src="wysiwyg.js"></script>

<div class="area" contenteditable>

<script>
  var wysiwyg = new Wysiwyg;
  wysiwyg.el.insertBefore('.area');
</script>