LITE (LoopIndex Tracking Enhancement) for CKEditor

See the API reference for a more detailed documentation

Installation

If your ckeditor build does not already contain LITE, drop the lite folder into ckeditor's plugins folder

Getting Started

  1. Include the lite plugin's interface in your html, e.g.
    	<script type="text/javascript" src="ckeditor/plugins/lite/lite_interface.js"></script>
    
    You don't have to include this file, but doing so will allow you to use the constants defined in it, e.g. LITE.Commands.TOGGLE_TRACKING, LITE.Events.ACCEPT
  2. If LITE is not included in ckedito's plugins list, add it to the editor's configuration. The simplest way to do this is by adding the following line to ckeditor's config.js:
    	config.extraPlugins = 'lite';
    
    If your configuration already contains some plugin tweaking, just make sure that LITE is included in the editor's plugins list.
  3. If you wish to make any other configuration changes via config.js, verify that the editor's configuation contains a lite section by adding the following lines to ckeditor's config.js:
    	var lite = config.lite|| {};
    	config.lite = lite;
    
  4. If your page doesn't include jQuery, the LITE plugin will load it during its initialization. By default the code is loaded from the lits/js folder. If you want to provide a different path, you can do so by configuring the value of lite.jQueryPath in ckeditor's config.js. The path you specify should be relative to the lite folder.
    	config.lite.jQueryPath = "../common/jquery.min.js";
    

Configuration

Methods

Events

The LITE plugin events are listen in lite_interface.js under LITE.Events. The following events are fired by the LITE plugin instance through its instance of ckeditor, with the parameter in the data member of the event info: