Table Of Contents

The table of contents plug-in provides a quick way to insert a table of contents and index to a document. The entries are automatically created from the level 1 and 2 headings in the document.

Installation

Installing the table of contents plug-in requires adding the jar file and a custom menu item. To add the jar file, use the JavaScript:

elj.addJar("toc.jar", "com.ephox.toc.Toc");

The custom menu item element is:

<customMenuItem name="createTableOfContents" action="raiseEvent"
  value="createTableOfContents" text="Generate Table of Contents"/>

In the example configuration file, it's located under the Tools menu.

Usage

Users create their document as normal, using the appropriate Heading 1 and Heading 2 styles to label headings and then select "Generate Table of Contents" from the menu. The plug-in will insert a table of contents at the top of the page and an index at the bottom. If the index or table of contents already exists, it will be updated.

Dependencies

None.

Download

Get the table of contents plugin.

The Plugin APIs used by these plugins are only available to customers of the EditLive! Enterprise Edition.
Ephox Technical Support does not cover LiveWorks! plug-ins.

Please direct any support requests or general enquiries about any LiveWorks! code, integrations or plug-ins to the LiveWorks! mailing list. This code is released as-is with no support and no warranty and is installed at your own risk. We recommend thorough testing of any LiveWorks! project before deploying to any production system.