Table of Contents

This plugin generates a table of contents.

  1. It simply crawls the content for Heading-Tags (<h1>, ... ,<h6>)
  2. Creates formated Table of Contents with <p> and margins for indent. (see screenshot 2)
  3. generates for each heading id- and name-attributes on h-tag
  4. deletes automatically already generated tocs inside the document.

The Plugin uses some code from http://ckeditor.com/forums/CKEditor-3.x/CKEditor-Plugin-Table-Contents. The Plugin is localized in german and english.

## Installation

 1. Download the plugin from here
 
 2. Extract (decompress) the downloaded file into the plugins folder of your CKEditor installation.
    Example: http://example.com/ckeditor/plugins/toc
    
 3. Enable the plugin by using the extraPlugins configuration setting.
    Example: CKEDITOR.config.extraPlugins = "toc";

   Make sure, "div" is included into the format_tags configuration setting.
    Example: CKEDITOR.config.format_tags = 'div';

 4. The "Links"-Toolbar now contains the toc-button

Screenshots

toc

13,158 downloads (view stats)

Releases

Plugin versions CKEditor versions
4.24 4.23 4.22

Version: 3.1

DownloadRelease notes

killed some minor bugs 

Twitter Facebook Facebook Instagram Medium Linkedin GitHub Arrow down Phone Menu Close icon Check