InsertAtCaret: 
    A WYMeditor plugin providing the functionality needed to
    insert text or html at the current caret (cursor) position.

© Copyright 2008 Jonatan Lundin, http://www.ettention.se
Dual licensed under the MIT (MIT-license.txt)
and GPL (GPL-license.txt) licenses.

For further information about WYMeditor visit:
    http://www.wymeditor.org/

Version:
    0.1

Author:
    Jonatan Lundin (jonatan.lundin _at_ gmail.com)

Requirements:
    * The plugin is designed to work width the 0.5-series of WYMeditor, it was 
      however only tested against the latest version in the trunk (r535)
    * Besides WYMeditor itself you will need jQuery, witch currently is bundled 
      together width WYMeditor so that shouldn't be a problem.

Installation:
    Just drop the "insertatcaret" folder inside your plugins folder (usually 
    wymeditor/plugins) and make sure that you include the JavaScript file on 
    every page you use WYMeditor. 

    It's important that the file is included after the WYMeditor source, 
    otherwise the plugin wont work.
    
    Insert this code after the other WYMeditor files:
    <!-- insertAtCaret plugin -->
    <script type="text/javascript" 
            src="/wymeditor/plugins/jquery.wymeditor.insertatcaret.js"></script>

Usage:
    Call the insertAtCaret method whenever you wish to insert pure html into the
    editor.

    Example:
        yourWymInstance.insertAtCaret('a html snippet');

    You can get a reference to your current WYMeditor instance like this:
        yourWymInstance = jQuery.wymeditors(0);

    Change the zero to match the index of the instance you want to access.

Changelog:
    0.1
        - Initial release.
